collapse collapse

* Who's Online

  • Dot Guests: 42
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Board Stats

  • stats Total Members: 88
  • stats Total Posts: 11163
  • stats Total Topics: 1699
  • stats Total Categories: 4
  • stats Total Boards: 76
  • stats Most Online: 248

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Nathan

Pages: 1 2 [3] 4 5 6 7 8 ... 46
C++ / Re: C++ Game Help
« on: September 17, 2012, 09:37:08 pm »
Yeah I was already aware of that , I did everything right the very first time I attempted ..
my problem was I got confused with < and > signs so I wrote the wrong one and that pretty much screwed everything up....

I got it fixed now and I can continue deving

Thanks for replying!
What was your solution?

C++ / Re: C++ Game Help
« on: September 17, 2012, 07:26:25 pm »
You need to set the bot health after they select something - otherwise everyone's health doesn't get reset and when you have the check:
Code: [Select]
while ( Bot.bothealth > 0 )It will always pass over because the bot's health will be 0 from the last "battle".

Updates / Upgrade complete!
« on: September 07, 2012, 11:50:19 pm »
The forum has been upgraded! The upgrade was a test of my patience but it seemed to work. Let me know if you notice any problems.
I'll be installing mods that were in the old forum plus some new ones.

So I think I've made the final tweaks for today (tomorrow?).  Let know if anything is broken!

General Talk / Shameless plug: Intro To Reverse Engineering Presentation
« on: September 03, 2012, 11:15:11 pm »
I will be giving a presentation on reverse engineering and you will be able to join via the web!

November 7th at 1:00PM CST

Some of the topics include (but not limited to):
* Difference between disassembly and decompilation
* Decompiling .Net applications
* Using IDA Pro to disassemble binaries
* Using Olly Debugger to debug binaries
* Bypass procedures in a piece of software (ie skip asking for CD key)
(I would demo how to break down malware but for obvious reasons, software that I write with protection will be much better. This is just going to be a simple demo.)
* Analyze patterns to find malicious trends using a combination of sysinternals tools and IDA pro

If time permits
* Creating binary patches

If I get enough interest I may want to make this a monthly or weekly thing.

I will post the URL and details for the web conference Nov 7th.

Introductions / Re: Legion: HQ Java Tech
« on: August 09, 2012, 09:59:46 pm »
Welcome to the forums :).

C# / Re: Exception Handling
« on: July 12, 2012, 08:54:12 pm »
Unable to cast object of type 'System.Windows.Forms.TextBox' to type 'System.IConvertible'.

You cannot convert type "TextBox" into type "Int32"

Code: C#
  1. integer = Convert.ToInt32(Input);  

Try to get the value into a string, then using atoi, or the CSharp equivalent.

ok not sure I know how to change an entered integer into a string?
I think all you were really missing was the following:
integer = Convert.ToInt32(Input.Text);

What Shishka wrote is the .Net way of doing it. The difference:
ToInt32 will throw an exception if it couldn't convert it (and it is up to you to catch it)
TryParse will not and instead returns a bool determining if the conversion was successful

BlitzPlus / Re: How blitzplus create midi format files?
« on: July 12, 2012, 08:48:42 pm »
I don't know if there is anything specific to create midi files in blitzplus, however I imagine it can play them - midi is an open format and if you study the format you can create a midi file.

C# / Re: Issue with GUI with OutputLabel and OKButton
« on: June 28, 2012, 09:47:01 pm »
It might help by posting a zip of the entire project.

Suggestions / Re: Visual Studio Code Formatting
« on: June 24, 2012, 05:11:46 pm »
Yes. That is prone to happen. But I find it usually happens with more advanced code.
I prefer to use formatting software because I hate doing that kind of stuff manually.
I am almost sure you can adjust the formatting in Visual Studio to whatever you want. (I'm assuming you are referring to things like tab styles, brace completion, newlines ect).

General Talk / Re: My new setup :)
« on: April 14, 2012, 07:13:08 pm »
Damn they must be paying you well. I am starting to regret myself not going into military.

Project Advertisment / Re: Axios Brick Breaker
« on: April 03, 2012, 09:24:18 am »
The second and levels are using different, smaller blocks. I believe the top is 64x32 and the bottom two are 32x32.

Project Advertisment / Re: Axios Brick Breaker
« on: April 02, 2012, 06:53:53 pm »
(After slight adjustments)


Tesla coil:

Pac Man ghost:

The CelestialCoding one will going into a section called "Extras" which I haven't coded yet.

Project Advertisment / Axios Brick Breaker
« on: April 01, 2012, 08:56:43 pm »
My next game will be a "breakout" type game. Development is still in progress, I have most of the coding done. Once I feel it is complete enough I will release the source code AND release it to the Market places.

Though, I need YOUR help celestial coding community!
I am in desperate need of levels. Levels are very easy to create, you can view the level format here:
If you submit a level I will list you in the credits.
If you have any questions about this project or levels feel free to ask here or privately.

Once the project is released then I will update this post with the proper links.

Project Advertisment / Axios Tennis
« on: April 01, 2012, 05:47:15 pm »
Axios Tennis is just the classic 2 paddle and a ball game. Nothing really special, it's just the first game created using Axios Engine.

Windows version can be downloaded here:
Windows Phone version can be download here: or

Xbox 360 version not available at this time.

Source code available here:

Theory Central / Re: World Domination Thesis
« on: March 31, 2012, 06:43:46 pm »
People become complacent when they are happy. There is a general agreement that you wouldn't ever be able to take over the human race by force - there will always be people who are against enslavement.

What you need to do is get a lot of money and offer simple work to homeless people, then to the average person - of course this work would in turn generate more revenue. People won't openly question your motives if you are helping people. Then make it so that a great deal of the population depends on you, then expand out and attempt to "recruit" more workers. The difference between this and a cult would be that you would offer absorbent amounts of money for simple tasks - like stocking shelves would be $50/hr. No one in their right mind would pass that up, especially if you offer a good work environment with benefits. Eventually you can take over important items such as media - which in turn if you control media you have a great power over humans. If there are troublemakers, or those who don't want to follow the "status quo" put them somewhere....not comfortable and remind them if they just go with the flow there wouldn't be any trouble.

Some TV shows could include - Earth Final Conflict and First Wave

General Talk / Re: College advice.
« on: December 10, 2011, 03:42:43 pm »
I advise going to a local tech school before entering any university. Take your basic classes there first, then your major at the university. I can assure you that it will reward you with huge savings later down the road. It also gives you more time to sort out any questions about what you want to do in the future.
I would recommend taking gen eds at a public university. Though, I would talk with an advisor at a university you want to go to and make sure that the class you are taking at a public university can be counted towards their undergrad program.

C / Re: Creating an alternative shell?
« on: November 30, 2011, 09:34:20 pm »
How would you begin to create an alternative shell for windows? Are there any GUI/graphics toolkits/libraries to create them?
For example: ,
Do you render GDI+/Cairo windowless then make it into a task bar or the start menu?
Do you use hooks to create graphical effects? Like compiz-fusion?
The concept is fairly straight forward but it's not for the faint of heart. Basically you take explorer out of startup and put your "shell" or application at startup. You could even end explorer and run your "shell" manually. Besides that - it's really just a heavy use of Windows API (such as getting the currently open programs, getting the systray icons and sending the right window messages).
Again, it's not for the faint of heart.
Can you screw up your system developing a shell? No, just hit Ctrl + Shift + Esc to open taskmanager - end your "shell" and file -> run explorer.

Project Advertisment / Re: Dead City - Fan Made Sequal To Dead Island
« on: October 29, 2011, 03:28:02 pm »
Not that I don't trust you (I really don't trust anyone) but here is a virus scan results for that file:

(Came back clean).

Request A Program or Tutorial / Re: Is this made of C++
« on: October 11, 2011, 10:42:44 pm »
It's most likely made of PHP - judging by the other pages.

Updates / Re:
« on: October 07, 2011, 10:33:01 am »
Actually it's been about 3 - I originally registered this domain 29-nov-2008
Registration was going to expire 29.11.2011 but it has been renewed until 29.11.2012

Updates /
« on: October 06, 2011, 12:07:01 am » has been renewed for another year.

php / Re: PLEASE, PLEASE HELP! Need help with file uploader!
« on: September 21, 2011, 11:21:12 pm »
Hi all, I need some help getting my PHP code to upload the BLOB files for itemimage and itemdata to my MySQL database. Problem is, it's saying the file does not exist after I hit upload. Why? How can I fix it?

Here is the small code:

Code: [Select]
function formatMoney($number$fractional=false) {
    if (
$fractional) {
$number sprintf('%.2f'$number);
    while (
true) {
$replaced preg_replace('/(-?\d+)(\d\d\d)/''$1,$2'$number);
        if (
$replaced != $number) {
$number $replaced;
        } else {

//function to store uploaded file

function readfile_chunked$filename$retbytes true ) {
$chunksize * (1024 1024); // how many bytes per chunk
$buffer '';
$cnt 0;
$handle fopen$filename'rb' );
if ( $handle === false ) {
return false;
ob_end_clean(); //added to fix ZIP file corruption
ob_start(); //added to fix ZIP file corruption
header'Content-Type:' ); //added to fix ZIP file corruption
while ( !feof$handle ) ) {
$buffer fread$handle$chunksize );
//$buffer = str_replace("?","",$buffer);
echo $buffer;
if ( $retbytes ) {
$cnt += strlen$buffer );
$status fclose$handle );
if ( $retbytes && $status ) {
return $cnt// return num. bytes delivered like readfile() does.
return $status;



$whichdb 1;

$whichdb == 1){ $whichincludes "../inc/itemsconnlib.php"; }
$whichdb == 2){ $whichincludes "../inc/imgconnlib.php"; }

$whichdb == or $whichdb == 2){ include($whichincludes); }


if(count($_FILES["item_file"]['name'])>0) { //check if any file uploaded
$GLOBALS['msg'] = ""//initiate the global message
for($j=0$j count($_FILES["item_file"]['name']); $j++) { //loop the uploaded file array
$file1 $_FILES["item_image"]['name']["$j"];
$file2 $_FILES["item_file"]['name']["$j"];
$filen2 $_POST['fname']["$j"]; //typed file name(s)
$filet get_file_extension($file2); //file type(s)
$filep formatMoney($_POST['fprice']["$j"], true); // file price(s)
$files $_FILES["item_file"]['size']["$j"]; //file size(s)

$handle1 = fopen($file1, "r");
$contents1 = fread($handle1, filesize($file1));
$handle2 = fopen($file2, "r");
$contents2 = fread($handle2, filesize($file2));

  $data1 $file1;
  $data2 $file2;
  $data1 mysql_real_escape_string($data1);
  $data2 mysql_real_escape_string($data2);

$path = 'uploads/'.$filen; //generate the destination path
if(move_uploaded_file($_FILES["item_file"]['tmp_name']["$j"],$path)) { //upload the file
$GLOBALS['msg'] .= "File# ".($j+1)." ($filen) uploaded successfully<br>"; //Success message

//Add to database

 $query     "INSERT INTO `$tbl` (itemimage, itemname, filetype, itemprice, itemdata)"
              ."VALUES('$data1', '$filen2','$filet','$$filep','$data2')" or die(mysql_error());

 $myquery mysql_query($query) or die(mysql_error());

$GLOBALS['msg'] .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"1000\" align=\"center\">\r\n"
."<td width=\"300\" align=\"center\" valign=\"top\"><li>File# ".($j+1)."</li></td>\r\n"
."<td width=\"500\"><li>($file1)<br />uploaded successfully!</li></td>\r\n"

else {
$GLOBALS['msg'] .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"1000\" align=\"center\">\r\n"
."<td width=\"500\"><li>No files found to upload</li></td>\r\n"
uploadForm(); //display the main form

By taking a second look did you try taking the $j out of quotes? like:
$file1 = $_FILES["item_image"]['name'][$j];
instead of
$file1 = $_FILES["item_image"]['name']["$j"];
Because I'm pretty sure they are different keys.

php / Re: PLEASE, PLEASE HELP! Need help with file uploader!
« on: September 18, 2011, 10:51:54 am »
<form name="frm" id="frm" method="post" onsubmit="return validate(this);" enctype="multipart/form-data">

Can you post the whole form like <form> [including this stuff] </form>?

php / Re: PLEASE, PLEASE HELP! Need help with file uploader!
« on: September 17, 2011, 10:38:14 pm »
What's the name of the form file upload?

Updates / Re: Moving to a VM
« on: September 16, 2011, 09:55:39 pm »
This has been delayed (ARRGGHHH). I have discovered packet loss on my network and I'm pointing the finger at the switch. It's a managed 10/100 Netgear switch (I've always had issues with Netgear), so I just bought a Dell PowerConnect 5324 (24 port 10/100/1000) off of ebay.

Updates / Moving to a VM
« on: September 14, 2011, 07:46:47 pm »
This Friday (9/16) I am going to move all the data on my main server to a VM.
I will need to take this server into a "maintenance" state, so it will be down but hopefully only for a short while.

C++ / Re: Parse Null Bytes Out of String
« on: August 10, 2011, 09:36:55 pm »
Now that I read a bit more on it, I'm not sure if it's what I need or not. Basically what I'm trying to do is turn this:

Code: [Select]

Code: [Select]
Using the .s to represent null bytes, since strings in PE files are usually stored that way. I'd want to take all those out to make the file easier to find the string i'm looking for in.

I think I may have an idea, if I used a for loop to go through the string, if I knew how to detect which bytes where null then i could easily work with it. What if I tried reading the file with ios::hex?

EDIT: I've found a way to do it effectively. This is what I came up with:

Code: C++
  1. ifstream file(argv[1], ios::binary | ios::in);
  2.         char input[513];
  3.         string sanitized;
  4.         unsigned char val;
  5.         char temp[513];
  6.         int cnt = 0;
  7.         int count = 0;
  8.         int pos;
  10.         for(int i = 0; i < 513; i++) {
  11.                 val = input[i];
  12.                 if(val != 0x00 && val != 0x07) {
  13.                         temp[cnt] = input[i];
  14.                         cnt++;
  15.                         count++;
  16.                 }
  17.         }

That's not the complete code, some stuff was chopped out. But that's the gist of it anyway. (0x07 is removed for debug printing purposes, you have no idea how annoying BEEP BEEP BEEP BEEP BEEP BEEP BEEP is when printing debug substrings)
This sounds like a job for this application:

Python / Re: python pointers ( 2.7)
« on: July 16, 2011, 06:10:24 pm »
ok i have 2 lists of simmiler classes
( exact same variables and functions with just a slight change )

i'd like to put the items in the lists into 1 list ( temporarily ) and sort it by a var in that class

so for effency i though i'd use pointers , i just dont know how

What you need to use is the sorted function.

php / Re: Can't connect to database
« on: July 14, 2011, 09:41:17 pm »
Well, here is the just of what I'm doing...
I have a Minecraft server on my computer and working on a website for it.
What I'm trying to do is set both up to go off the same Database.
So if someone creates a account on the site they create a account on the server as well, and vas visa.
Problem is that I keep getting this.
Code: [Select]
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'192.???.???.???' (using password: NO) in /www/ on line 2
Could not connect to db
Yes I changed the numbers to ???s just cause I'm not fully okay with putting all the numbers up.
The php file looks like this.
$db = mysql_connect("IP???","root","") or die("Could not connect to db");
 die("no db");
 die("No Database Selected");

Changed the IP out again.
Just wondering what is going on or if I'm missing something.
Also what IP goes there anyways?
Cause I put in the IP from
I really hope if your using a "root" account you have a password for it.

Pages: 1 2 [3] 4 5 6 7 8 ... 46


* Search

* Recent Posts

Image Comparison by Shishka
[May 15, 2017, 01:18:02 pm]

Re: srchub - free source code hosting by Nathan
[December 14, 2015, 11:37:02 pm]

Re: srchub - free source code hosting by Celestialkey
[November 27, 2015, 08:51:42 am]

Updates by Nathan
[October 30, 2015, 08:27:36 pm]

Re: Client-Server Messaging by Nathan
[October 25, 2015, 05:48:57 pm]