WordPress 3.0

News is finally out! The long-awaited release of WordPress 3.0 is out and you can download it here. This release is packed full of new features, too many to list in this short announcement. I know I have been gone for a while due to college studies and I may still not have much time to blog, but I will do my utmost to post a little more frequently than I have been!

I hope to create a post on CodeIgniter and possibly an introduction to CakePHP. I have been pleasantly surprised with the power and flexibility of CakePHP after having been a CodeIngiter guru, but I definitely enjoy experimenting with new things (including Ruby and Rails as well) !

Don’t forget Father’s Day coming up! Have a good one!

Posted in Other | Leave a comment

A Brief Look into CodeIgniter 2.0

It is indeed a long awaited release for CodeIgniter, and what a version! After over six months without a new one, EllisLab is giving developers exactly what they have been waiting for in CodeIgniter: new libraries, new features, and a cleaner file system.

New Stuff

Continue reading

Posted in Other | 3 Comments

CSS from Start to Finish Part 3: Getting into Properties

After a long break due to college, house-sitting, and life in general, I am back! If you have made it this far and everything has made sense, congratulations! Today we will be doing some real styling and designing. Fonts, colors, and backgrounds are the easiest things to work with in CSS, so we will make our start there.

Colors

I will demonstrate the three different ways (not including CSS3) to give any text on your page a color, but as my preference is hexadecimal values, I will be using hex values through the rest of this series. Continuing on, here are the three ways to style with color:

  • Color names
  • Hex values
  • RGB values

Here is an example of all three.

h1 {
color:red;
/* This is an example of a name value */

background-color:#26BD1A;
/* This is an example of a hex value */

border-color:rgb(38,189,26);
/* This is an exmaple of an RGB value */
}

For the rest of this series, I will be using hexadecimal values (since I find that the easiest by far), but we will be using RGB again when we get to CSS3 techniques, so keep RGB in mind.

The property color determines the color that the text of an element will take. So this text’s color value is green and this text’s color is red. Fairly simple stuff here.

Background

This is where it begins to get interesting. I will let you know up front that there are five different CSS properties that modify the background of the selector in different ways.

  • background-color
  • background-image
  • background-repeat
  • background-attachment
  • background-position

Now do not be overwhelmed at this point. We will only deal with background-color for now. The property background-color, as you may have guessed, modifies the color of the selector’s background. This text has a background color of white and this has as background color of red.

Conclusion

So there you have it. At this point you can indeed take a bland and ugly HTML document and turn it into something worthwhile already! It may not be fantastically beautiful yet, but we will get there! For those who are already CSS savvy but do not know shorthand or are having trouble mastering it, hang on! We’ll get there. If you did indeed enjoy this post, please subscribe to the blog, follow me on Twitter, even…

Posted in CSS | Tagged , | Leave a comment

New Site: Scrima for Mayor

Scrima for Mayor | Vote February 16

Scrima for Mayor

If you are a local Waukesha, WI resident, you may not be aware that the elections for the mayor are coming up fast. Jeff Scrima, and business owner and Waukesha native, is running for office. About a week ago, I was informed that he was in need of a website to promote his campaign for the upcoming preliminaries on February 16. Now, a week later, his site is up and running, and I have my first completed freelance project.

Also, you may have noticed (for those web design and developer savvies) that I am not a designer, nor do I claim to be. I cannot continue as a freelancer designing my own projects without the tools/resources or experience to create a catchy, simple, usable design for anything! If you are a designer looking for some potential business, please, contact me so that a professional / experienced designer can fulfill that part of the job.

Posted in Other | Leave a comment

5 Essential WordPress Plugins for Enhanced Security

As far as I am concerned, WordPress is the best blogging platform as well as the most extend-able and customizable CMS out there. If I am preparing for a new project, the first question I ask is, “Can this site be effectively powered by WordPress?” My guess is that 9 times out of 10 that it will be. There are very few clients out there who have a website in mind that is so ridiculously large and complicated that WordPress can’t handle (such as a department store, and they will have their own teams anyway). Besides the fact that WordPress is exceptionally powerful, it is exceptionally popular.

This is where it gets a little sticky. Since WordPress is so popular and has such a large user-base, it is therefore all the most likely to be exploited by hackers and malicious users. In all honesty, there is no perfectly secure anything on the web or on computers, but it gets close. This being said, WordPress is somewhat susceptible to attack. There are many things you can do to enhance the security of your WordPress installation and plugins are one of the more helpful ones. (I will come back and post more about other things you can do to protect WordPress without plugins.

1.) WP Security Scan

I love this one. There are several features that will give you a good idea of how secure your WordPress installation really is. It does not have means of changing many issues from the Dashboard, however, but if you are savvy enough to have your own WordPress installation, you should be savy enough to fix the issues it will alert you to.

2.) Login Lockdown

This plugin will give you some extra security on login. Should there be someone trying to crack into your Administrator’s account using brute force attacks or simply guessing at your password, WordPress alone will not prevent them from doing this indefinitely until your password is cracked. This plugin will limit the number of login attempts that can be made and will prevent login attempts after a certain number of login failures. It will also log any failures and lockouts that occur in your database.

3.) Antivirus

This is a really neat plugin. Here is the WP Antivirus’ description of their own plugin: “Viruses, worms and malware exist for WordPress and could easily attack your WordPress installation. AntiVirus for WordPress monitors malicious injections and warns you of any possible attacks”.

4.) WordPress Firewall

I’ll let the creators of this plugin speak for it:

It intelligently whitelists and blacklists pathological-looking phrases based on which field they appear within in a page request (unknown/numeric parameters vs. known post bodies, comment bodies, etc.). Its purpose is not to replace prompt and responsible upgrading, but rather to mitigate 0-day attacks and let bloggers sleep better at night.

5.) WordPress Exploit Scanner

This one is absolutely fantastic! If there ever is a hacker that gets into your site to add or take malicious content, it is almost inevitable that they will leave some code behind. This plugin can scan just about, if not everything in your WordPress installation for hacker trails. It even comes with an MD5 hash of itself to compare with what it should be in the WordPress.org plugin repo.

Conclusion

There you have it. 5 essential WordPress plugins to use in security measures. Don’t get me wrong, these aren’t the only ones out there, and these are not necessarily the best, but they are the best that I myself have come across and plan to use in all my future WordPress projects. Sometime soon down the road I will add to this post on how to secure WordPress even more without the use of plugins to add extra security (because plugins also have vulnerabilities, especially if a hacker knows you are using them). Hope this gives you a good start, so now you need to subscribe to the feed and follow me on Twitter!

Posted in Wordpress | Tagged , , | 11 Comments

CSS from Start to Finish Part 2: Adding CSS to your page

Something that is quite crucial to understanding CSS that we did not cover in the first part of this series is how to add CSS to your page. There are three ways to do so, and each one has a different level of ‘strength’ on the elements that they are targeting. They are as follows:

  1. External style sheets
  2. Internal styles
  3. Inline styles

Inline styles

Inline styles, by far, are the strongest form of styling an element. No matter how much you try to style an element through internal or external styles, you cannot override any inline styles. To add inline styles, you simply place the styles in the ‘style’ attribute of an element. Here is an example.

<h1 style="color:red;">My Dummy HTML</h1>

Notice that you do not need to include the brackets or the selector in inline styles since your are only allowed to style that one element. The example above will result in a h1 element with a red text color like so:

A Red Heading

Internal Styles

Internal styles are styles that are added to the ‘head’ section of your markup like so:

<!DOCTYPE html>
<html lang="en">

<head>
 <title>How to add CSS to your page</title>
 <style type="text/css">
  h1 {
   color:green;
   font-size:20px;
   font-family:Arial;
  }
  p {
   margin-left:20px;
   padding:10px;
  }
 </style>
</head>

<body>
 <h1>My header</h1>

 <p>This is an example of a paragraph tag.</p>
</body>

</html>

You will notice the ‘style’ element has an attribute of type=”text/css”. Now, internal styles do not have to be in the head section, but if you want to comply with web standards, that is where you should place them. Internal styles do not have as much ‘strength’ to style html elements as inline styles, but they are certainly stronger than external style sheets.

External Style Sheets

External style sheets are ‘weakest’ form of styling a web page, but they are the “correct” way to do so.

To create a stylesheet, create a new file in your favorite text editor and and save as style.css in the same directory as your html page. Here is an example:

Here is an example of where you can place your external CSS stylesheet.

Here is an example of where you can place your external CSS stylesheet.

Now, to add an external style sheet to your page, you need to use the ‘link’ element, not the ‘style’ element. This has shot me in the leg several times (more than I can count on my fingers, I will admit…). If we were to want to link to the stylesheet style.css from the document index.html like in the screenshot above, and the index.html document is the home page of www.example.com, here is a good way to do it:

<!DOCTYPE html>
<head>
	<title>Untitled</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

	<link rel="stylesheet" href="http://www.example.com/style.css" type="text/css" media="screen" />
</head>

Later on, we will cover what the media attribute means, but for now we will simply examine what else is happening here. The rel attribute specifies the relationship between the current document and the linked document, which means that the file that is being linked is a stylesheet for the HTML document. The href should be fairly obvious. This attribute specifies the location of the linked document in relation to the current document. If the style.css document were in a different folder or directory on our site, we would specify the path absolutely(i.e. ‘http://www.example.com/style.css’) or relative to the current document (i.e. ‘./style.css’). If you do not understand how folders and directories on a web server work, I would stick with absolute paths for now. The type attribute specifies (technically speaking) the MIME type of the file. This has to do with HTTP headers and server interaction, but for CSS, just put type/css.

Note: link tags must always go in the head section of your HTML document.

Conclusion

After this post, you should now be able to add a CSS stylesheet to your web pages no problem! As always, please subscribe to the feed or follow me on Twitter!

Posted in CSS | Tagged , | Leave a comment

CSS from Start to Finish: First Steps

Introduction

Before I even begin, I am going to make very clear that I will presume you know absolutely NOTHING! If you have experience in CSS already and are looking for more advanced techniques, check out this series at a later time, but for now, I will stick to it here.

First Steps

CSS stands for Cascading Style Sheets.  If you have not seen CSS before but are having to learn it, here is your first glimpse of the syntax:

body {
	background-color:#d0e4fe;
}
h1 {
	color:orange;
	text-align:center;
}
p {
	font-family:"Times New Roman";
	font-size:20px;
}

The following lines of CSS are very basic and very straightforward, even if you do not know the syntax. The names body, h1, and p are called CSS selectors. The given examples are html or xhtml elements on your page, however, as we will find out later, this can include the ids and class attributes of any html element.

The other two parts of CSS syntax are properties and values. Properties in our example include color, font-family, font-size, and background-color, but these are only some of over a hundred different properties. These properties change the style attributes of the html element. By default, h1 tags have a black color. In the above example, the color would change to ‘orange’, the property value. Given this vocabulary, you can now see that the body will have a background color of ‘#d0e4fe’ instead of the default white. (#d0e4fe is a hexadecimal value of a color. I am not going to waste time explaining it, so go figure it out for yourself here‘).

IDs and Classes

If you take a look as the source of a web page you are bound to find something that looks a little like this:

<div id="head" class="wrapper">
   <h1>A header </h1>
</div>
<div id="body" class="wrapper">
   <h1>Another header </h1>
</div>

The div tag has two attributes: id and class. Now, in CSS, if you want to target all the divs, you would simply add this line to your CSS stylesheet:

div {}

The only issue with this is that now every single div element on your page will have the same style! You may indeed want in your design, but more frequently you will want to target one or a few select divs in your markup. Say I would like give the ‘head’ div a red background and our ‘body’ div a green background. You would accomplish this by adding a ‘#’ followed by the id value to the ‘div’ property in your CSS like so:

div#head  {
	background-color: red;
}
div#body {
	background-color: green;
}

To target class attributes such as the ‘wrapper’ class applied to the divs in my earlier html example, simply add a period followed by the class you wish to target. In my earlier example we want to target the divs with a class of ‘wrapper’ and set the text color to yellow, so we will format our CSS like this:

div.wrapper {
	color: yellow;
}

Conclusion

Since my intent is to cover CSS from bottom to top, I shall stop here for now and continue this series later. If you are enjoying this series, please subscribe to my feed so I can devote more time to completing the series. You can also follow my on Twitter here

Posted in CSS | Tagged , | Leave a comment

My first post!

Well, here it is! This is my first post on my portfolio, ever! I have been dreaming of this day for almost a year, and it has finally happened. As of yet, I do not have a reputation in the web development or design community, but I am hoping that will change very soon.

What is there to expect here. I have lots of ideas for this blog and site in general, but for now I will give you what will be coming soon.

CSS from Start to Finish

I have found lots of almost invaluable resources for CSS all over the web. Unfortunately, they are spread out and take a bit of serious looking to find them (unless you know where to look already). In this series, I will presume from the start that you know absolutely nothing so that I do not leave anyone out. As I progress through the series, which I estimate will cover roughly ten posts, I will teach you the best practices of CSS design, advanced CSS3 effects and techniques, browser compatability concerns and fixes, and (hopefully!) some screencasts to go along.

The Web Developer’s Podcast

As of yet, this is just reaching the starting block in my mind. I figured, “Hey, why not include a video podcast for those visual and kinesthetic learners?” (Like myself!). Screencasts done by Jeff Way @ Nettuts+ and Chris Coyier over at CSS-Tricks have been an invaluable resource to me over the last year, and having another one focused directly on developers I thought would be a great addition to the infinite number of resources already online!

If this idea does get off and running, I think eventually that I will move it to its own domain, but that isn’t important right now, and it may not even happen…

Conclusion

In all, I hope to spend quite a bit of time here. If you end up liking this blog, please subscribe so that I can devote more time to this blog and getting even more resources and information out there!

Posted in Other | Leave a comment