e-velocity

Business, Life, Web Standards

Changing Design

June 23rd, 2008. Published under Design. No Comments.

Please be patient as things are put back together…

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut sit amet ligula. Pellentesque nunc pede, interdum et, mattis sed, blandit sit amet, odio. Aliquam erat volutpat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Vivamus sem leo, facilisis in, dignissim vel, vehicula id, sapien. Proin sit amet est non massa fringilla convallis. Suspendisse potenti. Sed placerat ipsum et mauris. Aenean quam enim, varius et, ultricies sed, posuere ultricies, mi. Ut tristique, neque sit amet congue adipiscing, leo eros lobortis est, quis porta orci eros fringilla tortor. Phasellus malesuada cursus dui. Morbi ut enim eget odio varius congue. Proin vulputate molestie sapien. Maecenas pharetra sapien nec tortor pellentesque pretium. In sed erat eget urna tristique ultricies.

Nullam molestie nisl quis lacus. Vivamus non eros non nibh ultrices venenatis. Pellentesque et purus tempor massa aliquam malesuada. Duis dignissim rutrum nibh. Donec urna lorem, placerat ac, congue vitae, vulputate sed, nisl. Fusce facilisis lectus a dolor. Mauris id nisl. Sed scelerisque. In condimentum elit a diam. Duis sed turpis sit amet tellus accumsan condimentum. Aenean posuere. Donec id massa sit amet nunc rhoncus viverra. Ut rhoncus tincidunt quam.

Ut nunc eros, euismod sit amet, sollicitudin a, viverra at, risus. Vivamus eget mauris at risus consectetuer pulvinar. Nulla ultricies. Morbi elit elit, imperdiet id, pulvinar eu, dapibus at, odio. Integer sollicitudin arcu. Nunc sed purus eu justo fermentum fringilla. Donec luctus aliquam eros. Nunc in ligula dignissim magna dapibus euismod. Nulla facilisi. Sed vitae arcu. Suspendisse volutpat. In venenatis tincidunt magna. Sed fermentum, dui quis vestibulum pulvinar, lorem dolor dictum nunc, nec pulvinar velit tellus nec tellus. Maecenas vulputate lacus eget lacus. Praesent quis velit ac felis lobortis condimentum. Aliquam et quam eu justo placerat aliquet. Mauris eu lorem. Donec id massa. Maecenas at eros ac tellus eleifend vehicula.

Lazy Blogger

March 5th, 2008. Published under Miscellaneous. No Comments.

I haven’t written a post in a long time. I promise for those who visit frequently; I will have some more goodies up here shortly, as well as finish off the rails login system. I will also have some new designs showcased on here for discussion.. stay tuned, more to come shortly!

ASP.NET MVC Framework

November 15th, 2007. Published under ASP.NET C#, MVC, Programming. No Comments.

This looks pretty awesome for those who are interested in Ruby on Rails but cloned for ASP.NET. http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx. As well as This video.

I have yet to try it out but subsonic is an amazing time saver and powerful. I’m anxious to try it out.

Comparing Rails and the .NET MVC Framework

Judging by the screen shots and Scott Gu’s blog entry, you can compare the C# controller methods to ruby functions in your typical ruby controller. URL mapping is done by using the Global.asax, though I’m not sure of the structure of this file and what limitations or dependencies there may be. The only thing I’m not too excited about yet is the models in the .NET MVC Framework. It still seems a bit heavy to build your models as apposed to its predecessors such as django or Ruby on Rails, though I could be wrong. I will also assume that helper functions and partials; that usually exist in any MVC, will be user controls, perhaps the option to generate some based on your model? I don’t know. Nonetheless, looks very good.

Update: A co-worker confirmed that the ASP.NET MVC Framework will do about 70% of the same functionality that rails models does. Excellent news!

User Registration with Rails (Part 2 of 3)

October 25th, 2007. Published under Programming, Ruby on Rails, Tutorials. 2 Comments.

I talked about creating a basic user model with rails in the last article. We finished off the last article with some simple validations to prevent user registration errors and created a standard layout for our views. The purpose of this second article is to put the model we’ve created into use by creating a user registration page for our application. Let us start by adding a new action to our Web controller called “register”. Your Web controller should now look like this with the newly added action:

(more…)

Web Standards & Search Engine Optimization

October 24th, 2007. Published under Search Engine Optimization, Web Standards. 1 Comment.

The purpose of this article is to update web development skills and introduce web standards to properly structure HTML web sites for Search Engine Optimization. This document also teaches how to properly identify keywords/key phrases and when to use them to gain Search Engine Positioning.

There have been many different versions of HTML since the World Wide Web was invented in the early. The ‘rules’ for using each version are encapsulated in the standards published by the World Wide Web Consortium (W3C). The standards dictate the tags publishers are allowed to use (and in what order), and how those tags should be interpreted by browsers and ‘user agents’. For example, page headers should be indicated as such by placing them in header tags, paragraphs should be wrapped in paragraph tags, lists wrapped in ordered or unordered lists and so on. The essential point is that because search engine indexing mechanisms easily spider standards-based, structural HTML, you should give them what they want whenever possible.

Use Cascading Style Sheets (CSS) to control the look and layout of your web site. In other words, design the way the structural markup looks in a completely separate document (e.g. the header tags, mentioned above, can be styled to look almost any way you choose). Use CSS because it allows you to write structural HTML markup, without compromising your design vision and, most importantly, it allows you to code your web site for maximum SEO results.

Note: I built and zipped a sample web site of how to properly structure a web site using web standards it is included at the end of this article. The scenario used in the sample is anyone who wants to buy a used car at discount prices. I commented everything that is important. This sample would be an excellent reference if you ever get stuck on something, it can even be used as a template for beginners who learn by example.

Immediate SEO Benefits of Using Structural Markup and CSS

  1. The combination of standards-based HTML and CSS generally result in much smaller HTML files so web pages load more quickly.
  2. The structured code will also improve the search engines ability to effectively index web page content. Search Engine mechanisms realize proper document structure.
  3. CSS-styled HTML elements used in place of images, particularly for page headers, will enable you to strategically use your keywords where they count the most.

(more…)

External Links in a Wordpress Sidebar

October 19th, 2007. Published under Programming, Tutorials. 2 Comments.

I use wordpress for a Content Management System for a few sites I built. There was often a need to link directly to an external site from the sidebar menu within a page that is managed by Wordpress. Wordpress does not do this by default, nor have a I found a plugin that allowed this. Wordpress does have a blogroll option, but that does not allow me to directly link from within a page or a post in wordpress. There is a plugin that allows you to link from a wordpress page, but again it was not the solution I was after. Here is a way to link to external sites like a blogroll from within any page or post. I did not put this into a plugin yet, but I will eventually, for now I will tell you how to accomplish external links while creating a page or post.

The usage is simple. When creating an external link page, just put the Title of the post as your link name, and the body of the post as the link.

First, it is recommended that you backup your database in case you want to roll back. Alter the wp_posts table from the mysql> prompt, type the following:

1
ALTER TABLE wp_posts ADD COLUMN post_external TINYINT NOT NULL DEFAULT 0

(more…)

Basic User Model with Rails (Part 1 of 3)

October 17th, 2007. Published under Programming, Ruby on Rails, Tutorials. 1 Comment.

Creating a registration page for an application is one of the most common things to any application. There are countless tutorials out there that document a registration process, but I will take you through basic registration, and then end with a login system that can be used for any application. This article will be a 3 part series, and maybe even more if I feel people will benefit from it. This article is aimed at the beginner looking to create a small application, or getting used to the basics of Ruby on Rails.

This article assumes the reader has knowledge in migrations and MVC. It also assumes the reader has MySQL or any other database of choice. For this article I will be using MySQL.

Let us begin by creating a new rails project by issuing the following command in console on linux, mac, or in cmd on windows.

rails mysite

You can replace “mysite” with any name you want for your application, for simplicity I named it mysite. Now cd into that directory: cd mysite

(more…)