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 - Ikkerens

Pages: 1 ... 10 11 [12] 13 14 ... 26
166
Web Programming and Design / Re: Help with Html
« on: December 01, 2010, 01:47:13 pm »
I know this is necroposting, but I might have the solution to this:
http://www.schillmania.com/projects/soundmanager2/

It is a JavaScript lib which allows you to play sounds trough a special flash plugin.
I've been using it for quite a while and it never failed me :)

167
Web Programming and Design / Re: MySQL injection prevention
« on: December 01, 2010, 01:44:19 pm »
Something is wrong in this picture here. Why do you feel the sudden urge to reinvent the wheel?

Naive SQL injections are closed once and for all if you use prepared statements. You can do it in PHP with mysqli_prepare, pg_prepare, ibase_prepare, etc.

I see what you mean there, but those are functions for MySQLi, PostGreSQL and IBase.
What I'm doing here is basically using the default MySql function.
But then again, my sole purpose is to let people realise that their website is leaking.

168
Web Programming and Design / Re: HTML Games with JavaScript
« on: December 01, 2010, 01:41:36 pm »
You can prevent cheating by putting variables within the private scope.
That can be done using this:
Code: (JavaScript) [Select]
var GlobalScope = function () {
var PrivateString = "Hello";
return {
showstring: function () {
alert(PrivateString);
}
};
}();

Upon looking at the DOM using Firefox's Firebug, you can see that the private string is not accesible.
So this will not work:
Code: (JavaScript) [Select]
alert(GlobalScope.PrivateString);

But, this will, as it is called by the GlobalScope's own child.
Code: (JavaScript) [Select]
GlobalScope.showstring();

169
Web Programming and Design / MySQL injection prevention
« on: December 01, 2010, 01:06:50 pm »
Allright, I wrote this little snippet to prevent mysql injection.
And then I thought of the fact that alot of websites are still sensitive to mysql-injection, hence I came on the idea of sharing this script.
Code: (php) [Select]
<?php

function sql_query($query$variables)
{
//Take the query, and replace the contained variables
//Query should contain [WHERE]
if ( !preg_match(&#39;[WHERE]&#39;, $query) )
{
die();
}
else
{
$parms = Array();
foreach( $variables as $name => $variable )
{
$parms[] = "`".$name."` = &#39;".mysql_real_escape_string($variable)."&#39;";
}
//Merge parameters
$parameters implode(&#39; AND &#39;, $parms);
//Prepare the query
$query2 str_replace(&#39;[WHERE]&#39;, &#39;WHERE &#39;.$parameters, $query);
return mysql_query($query2);
}
}

?>


And the usage:
Code: (php) [Select]
<?php

include(&#39;./sql_query.php&#39;); //Or any way to implement the function.

$query sql_query(&#39;SELECT * FROM `table` [WHERE]&#39;, Array(
"field1" => $_POST[&#39;username&#39;],
"field2" => &#39;value&#39;
));

?>


In the array, the key name is the field name in SQL.
Then the value in the array is the one that should be found.
For now, I do not support the OR attribute, and I never use that one personally xD

170
TI Z80 / Re: Sprite Editor Feature Requests
« on: November 29, 2010, 04:06:35 pm »
Export function, thats what I've missed in your last version xD

171
Miscellaneous / Reason for absence
« on: November 25, 2010, 12:27:27 pm »
Hello Guys,

I was planning to post this for a while, but I found I simply didn't have the time to do so.
So well, here goes:

A few months/weeks earlier I created a topic concerning I was going to be absent for a 2/3 weeks due to my exams/vacation.
Usually, after every vacation, my urge to program games returns because I still have a project to finish.
This time was no difference.

So after my vacation, I resumed my zelda project, still having some bugs to fix in the engine I had so far and stuff.
Basically, I started by creating a backup of the entire project by creating a group.
However, the downside of creating a group is that all of the files have to be in RAM.
As some of you might know, OS 2.53MP is a little unstable, and that fact hit me at right the wrong moment.
I had a ramclear during the grouping, losing all graphics and a major part of the engine.
Since then, I did not have the urge to pick up the game again.

I might pick the project up again someday, but so far, my priorities have been blocking me.
Such as,
there are new exams coming up (yes, again).
I recently got into a relationship, which I have to maintain, which is also a big priority for me ;)

So basically, as things look now. I will not continue any major projects on the calculator anymore for a while.
I might release some small games, but nothing really big.

I hope you guys will understand this, and I really do regret the fact that I can not contribute to the community.

I will try to remain active here, but I won't make any promises...

Yours, Ikkerens

172
Humour and Jokes / Re: What happens when you play Crysis on a pentium 2
« on: October 24, 2010, 02:51:14 pm »
O.o
M8, ever thought of a liquid cooling system, because that's not really healthy :P

173
Art / Re: 8x8 dungeon/shrine interior tilemap
« on: October 18, 2010, 09:39:08 am »
I'm not a pixel artist, but it might be useful if you give some more details.
Such as, in what theme does it have to be? What ornaments do you want? Is it dark/light etc?

174
TI Z80 / Re: Physics Sandbox
« on: October 17, 2010, 07:01:20 am »
I still miss one thing, I made this very nice creation that I'm about to collapse, and then... I press clear by accident. Maybe some way to save "drawings" when exiting the program?

175
Art / Re: Dig Dug 8x8
« on: October 17, 2010, 04:30:52 am »
These suck. Don't use them.
LOL, they look good imho.

176
Miscellaneous / Re: What is your signature?
« on: October 16, 2010, 01:13:37 pm »
My sig has gone evil :)

177
Axe / Re: Re-structuring Pictures
« on: October 16, 2010, 12:33:27 pm »
Well, in a case where a developer already has all 10 pictures in use, and stores them in programs.
But still, a way to restructure any pic on runtime would be really useful.

178
Axe / Re: Re-structuring Pictures
« on: October 16, 2010, 07:52:40 am »
Thanks, but another question, is it possible to import prgm's or appvars as tilemap?
For example: [prgmMYGFXr]->Pic0   ? ( I know this isn't possible, but maybe some other way, else its a feature request )
Cause this would save me alot of trouble as well :)

Edit: Don't need it anymore myself, but might be useful for other ppl.

179
Miscellaneous / Re: What is your signature?
« on: October 16, 2010, 05:17:00 am »
Well, the banner showing my love for w3c :)
And I have put some basic stuff such as my projects/nerdtest/internetz in spoilers so that my sig doesn't get too large.

180
Axe / Re-structuring Pictures
« on: October 16, 2010, 04:33:08 am »
I was wondering about something, we know axe is able to absorb pictures as tilemap.
[Pic0r]->Pic0

But what about pictures read trough GetCalc(?
Can I also convert pictures to tilemaps while executing the program instead of when compiling?

Pages: 1 ... 10 11 [12] 13 14 ... 26