PHP For Beginners

by Matt on June 3, 2009

After teaching the PHP for Beginners Class on EduFire.com I am now more up to date on what people want to learn, and how quickly I can move through things.

Below, you will find an outline of the basics…

Is this for you?

If you don’t know any other programming languages, don’t know HTML, this isn’t for you.  If you don’t know how to use FTP, or upload files on to your server/hosting account, this isn’t for you.  If you don’t know what a hosting account or server is, this probably isn’t for you.

If you’ve managed to pass through the above list, you will probably be able to learn something today!

What exactly is PHP?

PHP stands for PHP Hypertext Preprocessor.  PHP processes content on the server side before serving it to the end user, so the end user will never see the PHP code, only the results of it.  With PHP you can add actual functionality (such as searching, logging in, registering, and so forth) to your websites.

Ready to get started?

You can find lots of tutorials on PHP at P2L!

Its a great site for tutorials.

{ 0 comments }

Linux From Scratch

by Matt on June 2, 2009

So, its an older project, and most linux enthusiasts have heard of it, but those newer to linux could looking to learn more could really benefit from it.  The free digital book teaches you how to build the linux kernel from scratch alongside your current linux install for a dual-boot into your own build of linux.  Whether you dream of being behind the next redhat or just strive to learn more, linux from scrach will definately help you get started.

Be sure to checkout Linux From Scratch at the URL below,

http://www.linuxfromscratch.org/

Also, look forward to posts coming soon about netbooks and linux distributions on them, basically, I plan to discuss light-weight computing, and how it is becoming more of a reality.

{ 2 comments }

Looking for a guest blogger!

by Matt on May 18, 2009

Interested in making your mark here?

Leave a comment if you’re interested, and be sure to enter your email with it!  We are currently looking for guest bloggers.  You can make a post here if you are selected, and with that post we will include a brief biography box with your information and a link back to your blog!

{ 0 comments }

Q6600 @ 3.6GHz on AIR!

by Matt on May 17, 2009

Not that impressive yet, is it.  Temperatures haven’t exceeded 42 Celcius.  So, wondering what the secret is?

SSPX0021.jpg

A full 120mm fan just for my CPU!  The Big Typhoon VX has kept my CPU extremely cool, to the point where it has passed what has been promised by water cooling systems.  I got my Q6600 and Big Typhoon VX from Tiger Direct.

Its not to hard to reach these levels, get yourself a decent Q6600 (about 80% of the Q6600s I have worked with have been able to hit 3.6GHz).

To keep my heat levels even lower, I now run at 3.15GHz (this allowed for a huge voltage drop).  I have not passed 36C since while running OCCT.

I am still unsure as to how these temperatures would match up to water cooling temperatures, and I can say that this fan is quite loud.  Actually, its really loud.

I have kept this fan running at full strength, and it is quite noisy.  The box reads 24dBA maximum, and I’m not sure how loud that is, but I know that it is noisier than my house fan.

This fan is huge, measuring 122mm(length) by 122mm(depth) by 103mm(height).  However, it easily sat inside my Antec P182 case.

{ 0 comments }

Google and Microblogging?

by Matt on May 9, 2009

Digg it?

The idea of microblogging through google was brought up during a shareholders meeting, but don’t just take my word for it, check out the article at searchengineland.com.

I’m interested to see what people think about this, would you let google replace twitter, would you use it on the side, or would you just skip out on google?

Post on your blog about this topic and leave a comment, I’ll add a link to your post!

{ 0 comments }

1000 Followers on Twitter, 72 Hours

by Matt on May 8, 2009

Digg it?
twitter.png

I’ve tapped into the power of twitter, and rather quickly.  The truth is, you can too.  This isn’t magic, you will have to do work, but it is a lot easier than you’d think.

 

 

The trick to twitter is adding people.

About 50% of the people you add will add you back.

 

That isn’t enough though, you need people to add.

Search twitter for whatever your niche is.  Find someone with a lot of followers tweeting about your niche, follow them, and their followers.

 

But how do you keep the people entertained?

As a rule of thumb, only post 1-2 advertising tweets a day, and post about 5 general updates, you can find news on digg.com’s home page, cnn.com, or just post sayings/quotes you find with google.

 

Can it really be done in 72 hours?

I spent about 2 hours a day during the 3 days to get the 1000 followers, and I’m sure you can do the same.

 

Doesn’t twitter ban people for aggressive following?

Yes, moderate your following.  Only follow users with content you’re interested in, as a rule of thumb, don’t add more than 100 people in an hour, and don’t be folowing 500 people with 10 followers.  Wait for your followers list to be at least 50% of your following list before following more people.

 

But, these people won’t follow me back…

Using the twitter karma tool, you can unfollow people who aren’t following you 

 

Is it really that simple?

Yes, it is, now go do it!

{ 0 comments }

Amazon S3 For WordPress

by Matt on May 6, 2009

So, I have now setup Amazon S3 and Amazon CloudFront and it looks pretty good!  It has taken quite a bit of work, but I have managed to have all static files served by Amazon CloudFront.

I know a lot of other bloggers are probably wondering how they can setup Amazon S3 and CloudFront to work with their blogs so I have prepared a step by step walkthrough below.

First, lets gather a list of all files that we are going to store on amazon S3.

You should now navigate to the WordPress directory on your server.  Generally, it can be located at /home/user/public_html or /var/www/ or similar.

Type in the following:

CD FilePath

Of course, replace FilePath with the actual location of WordPress on the server.

After that, you are going to want to run a query on your file system.  The command listed below should be run in the SSH terminal, it will output a list of files we need to download.

find * -type f ( -name *.css -o -name *.js -o -name *.png -o -name *.jpg -o -name *.gif -o -name *.jpeg ) >> files.txt

Now we need to generate a zip file with all of our data so that we transfer it to Amazon.

Now, we are going to make a zip file.  Use the following command:

zip -r files . -i@files.txt

Now you should have generated a zip file, files.zip with all of the contents we need to upload to Amazon S3.

Now, to download and delete that zipped file…

We now need to download the zip file we just created.  Visit your WordPress blog (in my case, mattdsworld.com).

Simply append /files.zip to the end of the url.  For example I would download the files from mattdsworld.com/files.zip.

Now we need to be patient.  Let the file download completely to your desktop, in some cases this will be faster than others.

You can now delete the temporary files we created from the server.  Enter the following in the command line to do so:

rm files.txt

rm files.zip

Y0u are done with your server for now at least!

Finally, its time to get everything on S3!

Hopefully you already have S3Fox and Firefox installed, but incase you don’t I have found a great video tutorial which will help you get started with S3Fox.

Look on the very bottom right corner of Firefox, you should see the text S3Fox/logo, click on it.  You should see a create Bucket Symbolcreatebucket.png.  Click it.  Your bucket name must be unique accross all of Amazon S3 so I recommend setting it to something like images.yourdomain.com.  For example,  I used images.mattdsworld.com.  Once you name your bucket, click okay.

Double click the bucket you created (it will be displayed in a list below those buttons).

Now, extract that zip file you downloaded earlier.  Once extracted, select all files, and drag them into the white area where your bucket was listed earlier.

Wait…  You should be in the Transfer View tab.  Scroll all the way to the bottom, and wait until the last object shows Completed.

Now, time to set our permissions up…

Since everything is now uploaded we are going to have to set permissions.  Go back to the Remote View Tab (click on it near the top of the S3 Firefox Organizer window).
You should now see 3 folders.  Click on the first folder, hold shift and click on the last one.

Now, right click over any of the selected folders and select Edit ACL.

You can click on The Green Checkmark and Red Crosses to switch them.  Make sure they are setup like the picture below.

checks.png

Also, be sure to check the box beside “Apply to subfolders”.

Now you can click okay, your bucket is setup!

Now, to test it out… Loading your Amazon Bucket!

For example, I would load:

http://images.mattdsworld.com.s3.amazonaws.com/wp-includes/js/autosave.js

Replace images.mattdsworld.com in that url with your bucket’s name.
If the first line reads the same as it does below, we are ready to go!  If you see an XML sheet, try reapplying the permissions.  If that doesn’t work post a comment below and I’ll try to help you.

var autosaveLast = ”;

Finally, I can say that all of the confusing work is over.

Time to setup WordPress to load files from Amazon S3, don’t worry, its easy!

Log into your WordPress Admin Panel, click Plugins from the menu on the left, then Add New below that.

In the search box enter My CDN and then press enter.  The first result should be My CDN.  Click install on the right side.

Now click on Plugins again, it should bring up a list of plugins including My CDN.  Click activate to the right of My CDN.


The plugin is ready to be configured, just one more step, really!

Still under the admin panel click on settings.  You should now see My CDN in the sub menu below it, click on My CDN.

Your blog’s main URL should already be entered, if it isn’t be sure to enter it here.  You may want to add your website with and without the www. if it can be accessed both ways, simply enter

http://mattdsworld.com,http://www.mattdsworld.com

Replacing mattdsworld.com with your domain name of course!

Leave the “Excluding URL Patterns” textbox alone.

Now there should be 3 more text boxes below.  In all of them we will enter the same thing.  You are going to have to recall your bucket name one last time.

Enter the following in each box:

http://images.mattdsworld.com.s3.amazonaws.com

Be sure to replace images.mattdsworld.com with your bucket name.

Click Save Changes!

And you’re done!

If you have any problems, feel free to send an post a comment below and I will try my best to help you!

{ 7 comments }

Welcome!

by Matt on May 6, 2009

Welcome to Matt Dunbar’s Blog!
Be sure to checkout URturn Auctions, where Matt is a developer!

{ 0 comments }