Code2Design.com
P.S. Don't leave without watching the Video Tutorials!

User login

Programming

The Layout

Navigation

Popular content

Resources

Who's online

There are currently 0 users and 2 guests online.

Beginning Photo Editing

Most people are not aware of just how easy it is to enhance even the poorest of photos. In this video I will cover bringing faded photos to life, enhancing colors, repairing dark photos, removing objects we don't want in our pictures, cropping, rotating, and more! At almost 40 minutes long, you will learn the tricks you need to make your photos stand out!


Submitted by David on May 26, 2009 - 9:19pm. | |
read more | David's blog | add new comment

MicroMVC

Today I am happy to announce the release of MicroMVC at github. MicroMVC is released under the GPL v3 so it is free for anyone to download and use.

MicroMVC is the project that I am most proud of out of all my web apps. It powers this sites video system and other sites where I needed something lightweight and blazing fast.

Along with the new home it has been updated, cleaned up, and outfitted with a couple example controllers that show you how to fetch twitter updates, create posts in a SQLite database, call hooks/plugins, and load views. There is even a video to help you get started.


Submitted by David on February 21, 2009 - 7:29pm.
read more | David's blog | 2 comments

PHP Video Tutorials

After several months work I am proud to announce the Code2Design video system is finally up! Featuring 25 videos on HTML, PHP, AutoCAD, and more! Each video is either 640x480 or 800x600 and is avalible to download for private viewing. (Not everyone has DSL in their home.)

The Two videos I recomend the most are PHP Security and Resizing and Sending Images For Email.

PHP security is probably the most advanced video of it's type in the world. It is about 45min long and covers basic attacks like Globals, Includes, and Super Global arrays like $_SERVER and $_GET. More advanced subjects like SQL injection, CSFR, and XSS are covered later in the video. Each attack is not only discussed - but actually shown in action so you can easily follow along.


Submitted by David on September 10, 2008 - 3:58pm.
read more | David's blog | 3 comments

MD5, hashes, passwords, salts and more

1) You need to salt your passwords.

"Assume a user's secret key is stolen and he is known to use one of 200,000 English words as his password. The system uses a 32-bit salt (like md5). Because of this salt, the attacker's pre-calculated hashes are of no value. He/she must calculate the hash of each word with each of 2^32 (4,294,967,296) possible salts appended until a match is found. The total number of possible inputs can be obtained by multiplying the number of words in the dictionary with the number of possible salts:

2^{32} \times 200 000 = 8.58993459 \times 10^{14}

To complete a brute-force attack, the attacker must now compute about 800 trillion hashes, instead of only 200,000. Even though the password itself is known to be simple, the secret salt makes breaking the password radically more difficult." - http://en.wikipedia.org/wiki/Salt_(cryptography)


Submitted by David on April 8, 2008 - 8:04pm. |
read more | David's blog | 2 comments

Arrays by reference

I have been using lots of functions to create and check my variables and arrays lately. Along these lines, I thought I would take some time to share how the concept of "passing values by reference" works.

Basically, if you are anything like me you are always passing functions values and then having that function "return" a value. While there is nothing wrong with this approach, there is often an easier way to work with values in functions. Besides making values "global", you can also pass a function a value by reference.

Here is the standard way most people would work with a value in a function and then collect the functions return value.


Submitted by David on January 17, 2008 - 8:18pm.
read more | 3 comments

Convert MySQL Tables to SQLite Tables

If you are having trouble converting MySQL tables to SQLite tables then this tutorial is for you. On the other hand, if you have no idea what I just said then let me explain that both MySQL and SQLite are free, open source databases. While MySQL is the most used open source database in the world, SQLite is catching on as a great database for people who don't need a complex system to manage their data. I personally have been looking into it as a possibility for running my personal blog.


Submitted by David on December 13, 2007 - 8:36pm.
read more | 4 comments

Members-system (using My-Sql)

PHP and MySQL login-system

Here I will teach you how to create a really basic login-system for use in php and mysql. The system can easily be built on to work with flash and other applications.

I'll just start:

First you need a "data.php" file that looks like this:

<?php
 
$dbc 
mysql_connect("localhost","***username***","***password***"); mysql_select_db("***db_name***"); 
session_start();
?>

You also need a database with a table (registered) with fields that look like the SQL code below. (If you want, you can copy it into phpMyAdmin and it will create the table.)

CREATE TABLE `registered` (
`id` int(11) NOT NULL auto_increment,
`username` varchar(64) NOT NULL,
`password` varchar(32) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;


Submitted by Alxandr on August 29, 2007 - 5:32pm.
read more | 11 comments

Javascript tooltips

Easy tooltips using javascript and html

Today I'm gone teach you how to create tooltips in HTML. First of all, you need to let the computer know that we are writing javascript - So start by typing:

<script language="javascript">

</script>;

Now that we have the container for the javascript we can now add the actual code for the tooltips. Paste this inside the script tags:


Submitted by Alxandr on June 2, 2007 - 5:51pm.
read more | add new comment




Like what you see?

Why not add more? C2D is looking for other Christian Web Masters who would like to help write articles for this site. If you have expericance in FLASH, CSS/HTML, PHP/MySQL, PhotoShop/GIMP, Blender, Javascript, or just General Design - our users would love to hear what you have to say. Contact Us

delicious   digg   reddit   magnoliacom   newsvine   furl   google   yahoo   technorati