Blogsy iPad Review

Blogsy iPad ReviewI haven’t written much about my iPad since I created my original review of the iPad. While there are many great apps available I wanted to point out one that needs to get more attention and that’s Blogsy.

If you run a blog the most irritating thing you have to do is grab content from multiple different sources. Blogsy eliminates all of that irritation and allows you to just access everything inside one nice little app.

Continue reading Blogsy iPad Review

WordPress on Mac

Wordpress on MacAfter I created the video tutorial Install WordPress on a Localhost I started receiving a ton of emails from people using Macs.

In this article I’ll show you exactly how to Install WordPress on Mac. You need to follow the instructions I covered in this tutorial Install WordPress.

Then you will need to do the following:

WordPress Theme Tutorial Pt 3

Create WordPress ThemesI continue showing you how to create WordPress Themes. I’ll show you the numerous ways you can access the information stored in the WordPress database.

If you missed the previous tutorials check out WordPress Theme Tutorial.

I’m not approaching this topic in the normal way. I’m presenting a bottom up complete coverage on exactly how WordPress Themes work and not a quick fix.

Continue reading WordPress Theme Tutorial Pt 3

WordPress Theme Tutorial Pt 2

Wordpress Problems SolvedIn part 2 of my WordPress Video Tutorial I continue to teach you all that you need to know to create custom WordPress themes. If you haven’t seen part one check it out WordPress Theme Tutorial Part 1.

Here I teach you how to grab very specific information from your WordPress database. You’ll then be able to better organize everything on your site to create featured content slide shows and numerous other tools.

Continue reading WordPress Theme Tutorial Pt 2

How To Spot a Scam

Girl Following Sales ScriptBeing that I write sales scripts for numerous corporations, I thought I’d teach you how to spot a potential scam. I specifically will focus on two groups in this article being Gold and Real Estate Investing.

I’ve recently contacted both by phone to analyze what sales techniques they are using and they are both using sales techniques that are normally used by scam artists.

Any time a sales person tries to sell you through emotions rather than facts you know you’re probably being scammed. These are the techniques used to sell using emotions!

Continue reading How To Spot a Scam

WordPress Theme Tutorial

Wordpress Problems SolvedIn this tutorial I’ll show you how a WordPress theme comes together.

I’ll walk you step by step through the html, css and WordPress PHP functions and how they work. I will use the default theme in WordPress to start out, but then will create more complicated themes as the tutorial continues.

Here are some tutorials you may need to understand this tutorial: HTML, CSS, PHP, MySQL, and JavaScript.

Continue reading WordPress Theme Tutorial

Psychic Detectives

Indirect Hypnosis Mind GameIn this video tutorial I investigate how to fool people into believing you are psychic.

I started on this journey as a Psychic Detective back in college. I’ll show you how to fool someone into believing you have a psychic friend. It’s a great trick you can use to entertain people in clubs.

I’ll then show you how real psychics fool people into believing they can:

Continue reading Psychic Detectives

Install WordPress on a Localhost

Wordpress Problems SolvedI’m creating a massive WordPress Theme and Plugin Tutorial, so I will first show you how to install WordPress on a Localhost for development purposes.

If you’re on a PC, you’ll probably want to get the Microsoft Web Platform Installer or Wamp Server. I prefer to install Apache, MySQL and PHP outside of a package system, but I leave that to you.

If you’re on a Mac or UNIX type system the following steps will work easily for you.

Continue reading Install WordPress on a Localhost

Mushroom Risotto

Mushroom RisottoRecently I held a poll and asked what recipe would you like to see most. I was surprised that you chose Mushroom Risotto, but it was an excellent choice.

Mushroom Risotto is an amazing dish! It is extremely rich and filling.

The reason that it tastes unlike anything else is because Risotto, or Arborio rice is softer on the outside than on the inside. If you cook it properly, it will take on the flavor of the food that surrounds it.

Continue reading Mushroom Risotto

Portion Control

Hashbrown CasseroleOne of the biggest mistakes a person can make when dieting is to believe that portion control works!

What do you think about when I say portion control? Chances are you’re thinking about quantity. The problem is that if you concern yourself with the quantity you eat, you are more likely to eat a tablespoon of butter over a pound of mushrooms.

The pound of mushrooms is actually lower in calories and fat, cholesterol, sodium,…

Continue reading Portion Control

PHP Message Board Pt 5

PHP Message Board 5In part 5 of my PHP Message Board Tutorial, I show you how to create a proper login system.

This isn’t a simple system though. It is multi-layered and very secure. I specifically cover how to:

  • Secure against code injection and session hijacking
  • Change page elements based off of login status
  • Verify login status with cookies and sessions
  • Create a small compact captcha system
  • Search the database to verify identity and make changes to the data

And, a whole bunch more. All of the code follows the video like always.

This is a more advanced script and you may need help with the following topics:


Code From the Video

<?php

include(‘header.html’);

?>

<style>

#recaptcha_image img {

width: 185px;

height: 28.5px;

border: 1px solid gainsboro;

}

#recaptcha_widget {

height:400;

}

</style>

<script type=”text/javascript”>

// Changes the styling for the Captcha image

var RecaptchaOptions = {

theme : ‘custom’,

custom_theme_widget: ‘recaptcha_widget’

};

</script>

<?php

if (isset($_POST[‘submitted’])) { // Check if the form has been submitted.

// Security check for a valid username

if (preg_match (‘%^[A-Za-z0-9]\S{8,20}$%’, stripslashes(trim($_POST[‘userid’])))) {

// Scrub username with function in header.php

$u = escape_data($_POST[‘userid’]);

} else {

$u = FALSE;

echo ‘<p><font color=”red” size=”+1″>Please enter a valid User ID!</font></p>’;

}

// Security check for a valid password

if (preg_match (‘%^[A-Za-z0-9]\S{8,20}$%’, stripslashes(trim($_POST[‘pass’])))) {

// Scrub password with function in header.php

$p = escape_data($_POST[‘pass’]);

} else {

$p = FALSE;

echo ‘<p><font color=”red” size=”+1″>Please enter a valid Password!</font></p>’;

}

// PHP Code for the CAPTCHA System

$captchchk = 1;

$privatekey = “Public Key Here”;

$resp = recaptcha_check_answer ($privatekey,

$_SERVER[“REMOTE_ADDR”],

$_POST[“recaptcha_challenge_field”],

$_POST[“recaptcha_response_field”]);

if (!$resp->is_valid) {

// What happens when the CAPTCHA was entered incorrectly

echo ‘<p><font color=”red” size=”+1″>The CAPTCHA Code wasn\’t entered correctly!</font></p>’;

$captchchk = 0;

}

// Query the database. Verify the username, password and captcha

if ($u && $p && $captchchk) {

$query = “SELECT user_id, first_name, last_name, email, username, passwd, active FROM users WHERE username=’$u’ AND passwd=SHA(‘$p’)”;

$result = mysql_query ($query) or trigger_error(“Either the Userid or Password are incorrect 1”);

if (mysql_affected_rows() == 1) { // A match was made

$row = mysql_fetch_array ($result, MYSQL_NUM);

mysql_free_result($result);

// If they haven’t activated the account redirect

if ($row[6] != NULL)

{

header(“Location: http://localhost/msgbrd/mbforgotpass.php”);

mysql_close(); // Close the database connection.

exit();

}

$_SESSION[‘first_name’] = $row[1];

$_SESSION[‘userid’] = $row[4];

// Create Second Token for security

$tokenId = rand(10000, 9999999);

$query2 = “update users set tokenid = $tokenId where username = ‘$_SESSION[userid]'”;

$result2 = mysql_query ($query2);

$_SESSION[‘token_id’] = $tokenId;

// Reset session id for security

session_regenerate_id();

// Redirect the user

header(“Location: http://localhost/msgbrd/mblogin.php”);

mysql_close(); // Close the database connection.

exit();

}

} else { // No match was made.

echo ‘<br><br><p><font color=”red” size=”+1″>Either the Userid or Password are incorrect 2</font></p>’;

mysql_close(); // Close the database connection

exit();

}

} // End of SUBMIT

?>

<body>

<div id=”header”><h2>Message Board</h2></div>

<div id=”login”>

<?php

echo ‘<h1>Welcome’;

if (isset($_SESSION[‘first_name’])) {

echo “, {$_SESSION[‘first_name’]}!”;

}

echo ‘</h1>’;

// Display links based upon the login status

// If user is on the logout page disable the login

if (isset($_SESSION[‘userid’]) AND (substr($_SERVER[‘PHP_SELF’], -10) != ‘logout.php’)) {

echo ‘<a href=”logout.php”>Logout</a><br />

<a href=”change_password.php”>Change Password</a><br />’;

} else { // Not logged in.

echo ”

<form action=’mblogin.php’ method=’post’>

<p><b>Userid:</b> <input type=’text’ name=’userid’ size=’20’ maxlength=’20’ /></p>

<p><b>Password:</b> <input type=’password’ name=’pass’ size=’16’ maxlength=’30’ /></p>”;

// Captcha stuff from Google

echo ”

<div id=’recaptcha_widget’ style=’display:none’>

<div id=’recaptcha_image’></div>

<div class=’recaptcha_only_if_incorrect_sol’ style=’color:red’>Incorrect please try again</div>

<span class=’recaptcha_only_if_image’>Enter the words above:</span><br />

<span class=’recaptcha_only_if_audio’>Enter the numbers you hear:</span>

<input type=’text’ id=’recaptcha_response_field’ name=’recaptcha_response_field’ />

<div><a href=’javascript:Recaptcha.reload()’>Get another CAPTCHA</a></div>

<div class=’recaptcha_only_if_image’><a href=’javascript:Recaptcha.switch_type(\’audio\’)’>Get an audio CAPTCHA</a></div>

<div class=’recaptcha_only_if_audio’><a href=’javascript:Recaptcha.switch_type(\’image\’)’>Get an image CAPTCHA</a></div>

<div><a href=’javascript:Recaptcha.showhelp()’>Help</a></div>

</div>

<script type=’text/javascript’

src=’http://www.google.com/recaptcha/api/challenge?k=Public Key Here’>

</script>

<noscript>

<iframe src=’http://www.google.com/recaptcha/api/noscript?k=Public Key Here’

height=’300′ width=’500′ frameborder=’0′></iframe><br>

<textarea name=’recaptcha_challenge_field’ rows=’3′ cols=’40’>

</textarea>

<input type=’hidden’ name=’recaptcha_response_field’

value=’manual_challenge’>

</noscript>

“;

echo “<div align=’left’><input type=’submit’ name=’submit’ value=’Login’ /></div>

<input type=’hidden’ name=’submitted’ value=’TRUE’ />

</form>”;

echo ‘<a href=”register.php”>Register</a><br />

<a href=”forgot_password.php”>Forgot Password</a><br />’;

}

?>

</div>

</body>

</html>

Best Sandwich Recipe

Veggie DietWhen I set out to create the perfect diet over a year ago I knew I needed to create an awesome sandwich!

Everybody loves sandwiches. I consider this sandwich to be one of the main reasons I lost 80 pounds in 5 months.

It tastes awesome. It is extremely filling. And, it measures in at just 200 calories. That means that since I’m 6’3″ I could eat over 6 of these a day and still finish below my required 1400 calorie max.

Continue reading Best Sandwich Recipe

PHP Message Board Pt 3

PHP Message Board 3In the last part of this tutorial PHP Message Board Part 2 I set up the database access file, some security stuff and a user registration page. In this part of my message board tutorial I finish off the user registration page.

In this tutorial I’ll show you how to do the following:

  • Using Regular Expressions to Secure your Website
  • How to Perform Form Validation
  • Implement a Captcha System
  • Issue MySQL Common Queries
  • Generate Random Numbers
  • How to Generate a Email Verification System

Continue reading PHP Message Board Pt 3

PHP Message Board Pt 2

PHP Message BoardA few articles ago I started creating a PHP Message Board, but then I got side tracked. Here is the original video PHP Message Board. You must watch it before you watch this one.

In this video tutorial I’ll start explaining how to create a new user registration system for the message board. You can also use this as a review of all I taught on PHP, MySQL, CSS, HTML, JavaScript and JQuery. If you click on those links you can see all of my tutorials on those subjects as well.

Continue reading PHP Message Board Pt 2

All My Video Tutorials

YouTube LogoWell hello Internet! I have done 260 Video Tutorials on YouTube over the last year. This video will allow you access to all of them in one place.

I started off trying to provide job training, but along the way it has gone in numerous directions based off of your tutorial requests.

Not only do I have numerous videos on programming and web programming, but I’ve also spent a lot of time on:

Continue reading All My Video Tutorials

JQuery Video Tutorial Pt 8

JQuery lightboxIn this part of the JQuery Video Tutorial I show you how to create all kinds of cool things using the JQuery UI and plugins.

I’ll show you how to create a really nice JQuery Lightbox using fancybox. It has all the bells and whistles you want.

I’ll then show you how to create a tab interface that is: draggable, resizeable, sortable, and more.

Continue reading JQuery Video Tutorial Pt 8