Be a Supporter!
Response to: Be a coder for my site. Posted April 20th, 2009 in Programming

Ya, im terrible at xhtml/css. I'm alright at coding however. And go ahead, try to hack my forum. Mysql injections won't work, and you can't pass any scripts or html for that matter in a post.

Come on man. You don't even know how to properly check for blank posts.

Last post

Don't spend more time on the big things. The little things matter just as much, and could potentially be just as bad.

Response to: av arcade v4 template help? Posted April 20th, 2009 in Programming

You definitely didn't need your ENTIRE CODE for a simple CSS issue.

#footer {
 width: 98%;
 font-family: Geneva, Arial, Helvetica, sans-serif;
 font-size: 10px;
 clear: both;
 height: 25px;
 padding-top: 5px;
 text-align: center;
 color: #D4D4D4;
}

Check your info there, and check to make sure that there's actually something to display in copyright.php. That's the only thing I can currently think of, considering you're not specific enough in regards to the actual problem. :P

Response to: button help Posted April 20th, 2009 in Programming

At 4/20/09 07:39 PM, BlueberryCIock wrote: i try the codes in the tutorials but they dont work what AS should i use

Flash Forum, dude. :P

Response to: Photoshop Robosapien! Posted April 18th, 2009 in General

I always thought he looked sort of like a robot...

or did I?...

Photoshop Robosapien!

Response to: Thoughts on Freedom of Speech. Posted April 18th, 2009 in General

Just because we have Freedom of Speech doesn't mean we don't also have rules applied to it.

There's no such thing as Totally Free Speech, without limitations.*

*1: I have no clue whether or not this is true, but I think it is.
Response to: Preventing cheating online Posted April 17th, 2009 in Programming

But since money is involved, when someone does manage to get this incredible score without cheating, they will probably attempt legal action. Is it really worth that then?

You ask them to make a video proving they can do it. If they can, then you up the limit. Even so, it's a freaking Flash game. I've never heard of a lawsuit where somebody got into legal trouble, because somebody reached their limit on their highscore table.

Response to: Preventing cheating online Posted April 17th, 2009 in Programming

At 4/17/09 04:24 PM, henke37 wrote: If there is a maximim highscore, it's not a very fun game, now is it?

Nah, just calculate what you think would be the highest anyone would get to. If nobody could get past it anyway, then who cares? They wont know. :P

Response to: Some C help. Posted April 15th, 2009 in Programming

At 4/15/09 10:27 PM, adminz wrote: I took your guys advice and added brackets/removed the return(0) part, not my main lines(Puts/Pause) have no data storage types. here is the updated script. Also I think the reason it looks like it is mixed coding is because of the compiler, it requires some extra crap for it to work.

Get a better compiler then. That's idiotic.

I use Code::Blocks

Response to: Some C help. Posted April 15th, 2009 in Programming

Woa, what language are you REALLY trying to use, because I see some Ruby, some C, and some other garbage...

Next time, use [code] tags (Change []'s to <>'s).

Also, the reason you get an error to start off, is because you don't initialize your cost variable. Basically, you've got crap in the wrong order. Programs don't just "Figure it out themselves."

Also, I believe, when you have an if statement that has more than one line, like, for example:

[Psuedocode]

if(x) {

//Line 1
//Line 2
//Line 3

}

Then you have to use brackets. It's the same case with the else statement, but make sure your

return(0);

is not included in the else statement.

Response to: I got flooded emails by a fake Tom Posted April 15th, 2009 in General

For example:

Email Script

I just whipped that up, in like, 5 minutes. Input your email, and you should receive an email from "theryoku@newgrounds.com" with a subject of "ZOMG HAX0R EMAIL" and a message saying "It worked."

Test it out, it works. That's only one way to do something like that, but I think you get the idea.

I'm taking this down within the hour, because I don't actually have an email at NG, and it's only for example.
Response to: I got flooded emails by a fake Tom Posted April 15th, 2009 in General

For the non-programmers out there, this was probably sent using the PHP mail() function, or something similar.

Basically, when you tell your server to send an email with mail() in PHP, you can specify a "From" header, or, in normal terms, you can fake send emails by pretending you're somebody else.

He probably set it up to loop a few times, which explains why you received so many emails.

Response to: Powpowpow Posted April 13th, 2009 in Programming

I only have one thing to say:

I wish I was that good.

In other words, very nice. I think it's perfect.
Response to: Good programming language to start Posted April 13th, 2009 in Programming

If you get tired of them just try binary. Thats always fun for the brain

Why would you bump an old thread with a useless post? :S

Response to: Programming Regs Lounge Posted April 12th, 2009 in Programming

At 4/12/09 09:57 AM, Relish wrote: Happy Easter NG Programming forum :D

Indeed. Happy Easter everyone. :P

Response to: Deleting system32 Posted April 10th, 2009 in General

At 4/10/09 05:40 PM, Zerok wrote: I thought the OS simply doesn't let you.

=\

He's right.

If you're actively running Windows, you can't delete sys32, even with command prompt. You can't delete it unless you're in a separate OS, like Linux.

Windows isn't stupid; it wont let you delete it while you're currently using it.

Response to: Replacing depth directly by array Posted April 10th, 2009 in Programming

Any help appreciated.

Flash forum, friend. :)

Response to: PHP: 'new posts' Posted April 9th, 2009 in Programming

The simplest way I know to do it, it store post times, and store their last time visiting the page. Compare the two, and the "New posts" would be the ones with a time more recent than their last visit. That's how I'd do it. :S

Response to: Good programming language to start Posted April 9th, 2009 in Programming

C++ is a low level programming language that does not use too much code to create a function. C# have greater amount of code than C++ does. After all C++ created C# to begin with.

So I should always pick the language with the least amount of code involved? With your logic, BASIC would be a predominant language, would it not? How long it takes to write something has little to do with why a language is or is not popular.

Also, what if it's supposed to be a long function? Is it now wrong?


Binary > C = C++ > C#/VB/DarkBasic

You really need to do some research before you start spouting random crap like that. Last I checked, you wouldn't program in Binary anyway.

C =/= C++ (C++ came from C, but they are not the same.)

C# shouldn't even be mixed with VB/DarkBasic. C# Is definitely getting more and more popular every day, and a fantastic example of that would be the XBox 360's developer system and the system they use, known as XNA, which is written in C#. C# handles memory issues for you, and more people turn to it because pointers in C++ scare them.

So, please don't spout out random nonsense. It just makes you look more like a retard.

Response to: which is faster? Posted April 9th, 2009 in Programming

kk thanks. and ya, i wasn't talking about an animated background. those cause the page to load way too slow and are generally an eyesore, so i try to keep away from them.

Good, then Afro offered much more important advice. I didn't think about the client handling page load like that, but it makes logical sense. I completely forgot about the web browser!

I'm such a retard. >.>
Response to: which is faster? Posted April 9th, 2009 in Programming

At 4/9/09 12:07 AM, fluffkomix wrote: is it faster to load a web page if you have a looping background where the original picture is big, and therefore it doesn't have to copy it so much, or when the original picture is small, so it has less file size but has to copy much more?

If you're talking about an animated background, that's generally not a good idea. It just sucks.

Also, otherwise, I would think it's almost the same.

5 x 20 = 10 x 10

Just think about it. I would think that screen size/resolution would have a lot to do with it too, so it could depend on a lot of things. :S

Response to: mySQL storage question Posted April 8th, 2009 in Programming

I'm interested to know how you'd do this as well.

It's always nice to know. :P

Response to: Programming Regs Lounge Posted April 7th, 2009 in Programming

P.S. I'm a terrible ASCII-art-drawer.

That was a terrible failure on my part. Stupid copy-paste. :|

Response to: Programming Regs Lounge Posted April 7th, 2009 in Programming

____
\ \
\____\

That should look something like an O. I doubt it will :P

Use code tags? :P

____
\       \
 \____\
P.S. I'm a terrible ASCII-art-drawer.
Response to: swf. file problems Posted April 6th, 2009 in Programming

At 4/6/09 05:26 PM, darkmpulse1 wrote: Are you seriouse look at the damn site. Thats what his site is for.

He was quoting you. Not Blah.

Response to: Online game - My brute Posted April 6th, 2009 in Video Games

Fuck your hardened skin.

Ha. I just got that today. :P

We should group everyone together in one post, so that we can all have a ton of pupils...but anyway.

RPGRPG
RPGGirl
RPGBandit

Those are my three. :P

Response to: Programming Regs Lounge Posted April 5th, 2009 in Programming

At 4/5/09 07:31 PM, smulse wrote: Sneak preview of the i(Phone/Pod Touch) version of my website

You haven't even gotten the normal version up!

I agree. You have been working on it for forever.
Response to: Mysql Query In Php Forum Script Posted April 5th, 2009 in Programming

$pagenum = $_GET['page'];
$firstpostofpage = $pagenum*25;
$result = mysql_query("SELECT * FROM $topic2 WHERE PID > '$firstpostofpage' ORDER BY PID ASC");
Can anyone see something wrong? Or why this doesn't work?

I don't see where you've added for it to error out anyway, with that snippet.

mysql_query(BLAH) or die( mysql_error() );

We'd need to see the full code in order to point out errors.

Pastebin

Response to: ! Official Good Bye B B S Thread ! Posted March 31st, 2009 in General

few.

How is that a slip up? I believe he was referring to the fact that the kid was banned. I see no slip up.

ON TOPIC

Awesome.

Response to: Sig Generator. Posted March 21st, 2009 in Programming

At 3/21/09 10:39 PM, ThePinkyProductions wrote: Php. Simply.

We're not going to write this for you, unless of course, you're offering money.

Also, Use Google Please.

Response to: [as2, Cs3] Key Press/release Posted March 21st, 2009 in Game Development

At 3/21/09 09:57 PM, fjgamer wrote: When I see the "case" type coding, I always think I'm on a PHP forum or something. Usually, Flash coders don't take advantage of it. Heck, I don't, but I understand the purpose of it. It's shorter code.

Anyway, are you testing your 'movie' outside Flash? In Flash, it will use some keys for shortcuts in the IDE and not use them properly in "test movie" mode. That said, I think there's a way to disable the keyboard shortcuts, I just don't know where the option is.

1.) I don't think that's right, because you set a Flash movie into 'Focus'.

2.)I've always used this for AS2:

if(Key.isDown(keyCode)) { //... }

Then, for keyUp,

if(!Key.isDown(keyCode)) { //... }

or

onClipEvent(keyUp) { //... }

But that's just me, and it's probably a bit deprecated, but it's always worked fine for me.