v WebsiteSupport

March 23, 2012

CSS Layouts: The Fixed. The Fluids. The Elastic.

Which Cascading Style Sheet (CSS) layout is best? All have their quirks and their unique pros and cons. Is one more accessible than the other? More usable? What are the drawbacks and how are they dealt with? Is one easier to create than the other? Is there an evil, inaccessible layout? I suspect some will say yes to this, but I’m not going to. I like them all and feel all are suitable if steps are taken to ensure easy usability and equal accessibility. All are part of a web site’s presentational layer, so most of the accessibility relies on the extractable semantics and proper usage of the underlying mark-up. What follows is my take on the rigid fixed, the adaptable fluid, and the expandable elastic layouts.


Fixed Width Layouts

A fixed width site is one where the main wrapper is set to a specific immovable width independent of the user agent’s display resolution. A common and considerate fixed width is 760 pixels, a size that ensures users with 800×600 resolution monitors have close to full window viewing without annoying side-scrolling.

The Fixed Width Pros
The main readable content area is tightly controlled without having to set minimum-maximum width (which isn’t universally supported, anyway).
Fixed width layouts are sometimes easier to style depending on the effect you’re after. Some visual designs can only be achieved in a reasonable manner with a fixed width layout.
Based on the example width above — 760 pixels — the typical main content area will be in my opinion an ideal width for optimum readability.

The Fixed Width Cons
My precious “ideal width for optimum readability” pro-listing above can go bad if the text is enlarged greatly since the line-width-to-text-size ratio doesn’t increase along with text resizing. Do note, though, in a good design, this is only a problem if the text is huge.
People with small monitors (640×480 pixels) will end up with a horizontal scroll bar on a 760 pixel fixed width site. This is a very uncommon problem.
A 760px fixed width site can look too narrow on large screen displays.
The narrow width can limit the reasonable number of columns and content, but this may actually be a pro. Think forced moderation.

Some Fixed Width Advice
Place your fixed width content on the left hand side of the page so on a typical site 640×480 pixel monitor users won’t have to side scroll to read the site’s primary content.
Be sure to provide a handheld style sheet to accommodate smaller devices. Supplying projection and TV media-type style sheets may also be a good idea.

Fluid or Liquid Layouts



A fluid or liquid layout is created by not specifying a wrapper width at all or doing so using the percentage unit of measure. In other words, barring borders and padding screwing things up, a 100% width site will take up the entire view port width without producing a horizontal scroll bar.

GrayBit.com is an example of a fluid width site. It resizes to under just under 755 pixels before sprouting a scroll bar, but the use of the scroll bar isn’t required to access the content. In fact, the site remains perfectly usable down to about 560 pixels after which elements start overlapping, getting concealed, or dropping. Most fluid layouts have limitations like this and most that I’ve seen don’t perform well on handheld devices unless styles are removed or a handheld style sheet is furnished.


The Fluid Layout Pros
If done right, a fluid or liquid layout can adapt to just about any view port width making it quite universal. This is seldom a reality, but in theory, and if care is taken to ensure it, it is possible.
Fluid widths match the browser default layout method making this the “purist” of them all. But does a developer’s want of site purity sometimes stand in the way of usability? I think it may.
The fluid layout makes the most out of available screen real estate. More content should be above-the-fold (meaning it’s available without scrolling in any direction). But…

The Fluid Layout Cons
Too much available content and a strong desire to fill white space can be a detriment to usability. Too much content can confuse the user and make a site too congested or cluttered. There is an expression: “White space sells” and it’s a truthful statement, even on the web.
If width limiters using the CSS property max-width — which isn’t supported by Internet Explorer (IE) version 6 or older, by the way — aren’t supplied, you may very well, in your quest for layout purity, create a site that is at best difficult to use. Try reading a line of text that is over 1000 pixels wide and you’ll begin to see the problem.

Some Fluid Layout Advice
Use this layout method purposefully. Don’t do it because it’s “pure” and for no other reason. I suspect there has to be a better reason than this. If you do create a fluid width layout, make sure it fits in a large variety of view port sizes. Else, why bother?
If you’re making a fluid layout site and have fixed width content areas, you have essentially made a fluid/fixed width layout hybrid and can only be as narrow as the width defined by the fixed width content section or largest object. Be careful. If you’re going to make a site that is fluid, make sure it’s really fluid and not just in name only.
If you do create a fixed/fluid hybrid anyway, like that shown on my CSS tutorial, make sure it fits 800×600 view ports.

Elastic Layouts

An elastic site’s main wrapper and other elements are measured using ems as the unit of measure. Ems are relative proportionally to the text or font size. Thus, as the text size is increased, the sections measured in ems will increase in size as well.

An elastic width example can be seen in my CSS Zen Garden submission (limited elastic-fluid hybrid). To the best of my knowledge, this is the only CSS Zen Garden submission that is elastic and meant to be as accessible as the non-editable markup would allow. I’m proud of this project.

The Elastic Layout Pros
If done right, this is a very stable layout method because everything resizes at the same rate. The result is nothing changes disproportionally.
An elastic layout is challenging and cool as hell. The first time I saw one was Tommy Olsson’s site (which happens to be an exceptionally well done example of how an elastic site should be done). This blew my mind, made me laugh, and generally impressed the hell out of me. Elastic width sites are best enjoyed by enlarging the text using ctrl and mouse scroll wheel… let me hear you say “Zwoop.”

The Elastic Layout Cons
Aside from the cool factor, I don’t really see much of a benefit to this type of layout. This makes me wonder what the point is.
Unless limited, this layout method can be a usability disaster as it’ll get wider and wider and wider — without benefit.


Some Elastic Layout Advice
If you’re going to make an elastic layout, make sure it works on small monitors. Else, what’s the point?
Limit an elastic layout specifying a max- pixel or fluid width measurement (hybridize it). For instance: #wrapper { width:60em; max-width:98%; }. Purists may argue that it’s not a true elastic layout if it’s limited or hybridized, but I really must ask: who cares? Again, layout purity is all fine and good, but not when it’s at the expense of usability.
Remembering that IE 6 and older doesn’t support max-width, try to start narrow enough that the text can be enlarged to its highest IE setting without producing a scroll bar at 1024×768. You’ll see that is the case with my CSS Zen Garden submission. To step it up a notch, you can make it narrow enough that it’ll be enlargeable to it highest setting in IE on an 800×600 monitor as well. An example of this can be seen on my skinny elastic web hosting site (limited elastic-fluid hybrid). I do plan to re-do this in less than a year, but the link is good for now.

In Summary
As you can see, all of these layout methods have their pro and cons (can you think of others?). As far as which one is better I don’t know. It is just a site’s presentational layer as I noted previously, so with a little care and consideration, I think all of these methods are solid and usable when creating accessible, usable sites. That said, I do suggest not falling into the web purist trap of doing things because they’re more “pure,” sometimes at the expense of usability or accessibility. I’m not trying to criticize those self-proclaimed purists, they make us think and are a source of insight, but if you follow that route, do so cautiously. Have a purpose and a plan. “Just because” is not a reason — or so I tell my kids.




March 08, 2012

Fedora 17 Alpha Features


The Fedora Project proudly announced the immediate availability for download and testing of the Alpha version of the upcoming Fedora 17 operating system, due for release in May 2012.

Dubbed Beefy Miracle and powered by Linux kernel 3.3, Fedora 17 Alpha brings lots of new features, improvements and bug fixes.

Fedora 17 Alpha is distributed as an installable DVD and Live CDs with the latest development version of the upcoming GNOME 3.4 desktop environment and KDE Software Compilation 4.8, for both 32-bit and 64-bit architectures.

Some Features:
· Linux kernel 3.3.0 RC3;
· Move all to /usr;
· GNOME 3.4 Beta 1;
· KDE SC 4.8;
· Multitouch support;
· PackageKit integration;
· Automatic KDE Plasma dependency generation;
· SSSD AutoFS integration;
· SSSD-Sudo integration;
· The GIMP 2.8;
· Added Wallaby, a programmable semantic configuration service for Condor;
· Added "deny ptrace" for SELinux;
· systemd started services now run in private /tmp;
· Added Non-Uniform Memory Alignment Daemon (numad);
· OpenJDK is now the default Java Runtime Environment;
· Updated IPA to version 3, adding support for SELinux management, Active Directory domains, and SSH public keys management;
· Added new Font Configuration tool;
· ICC profile support for printing;
· Added English Typing Booster input method for iBus;
· Inscript 2 keymaps for Indic languages;
· Haskell Platform was updated to version 2011.4, with support for GHC 7.0.4;
· Boost was updated to version 1.48;
· DRI2 3D drivers only;
· Integration of libpinyin for better Chinese pinyin input;
· OpenStack now uses libguestfs and Qpid.




Fedora 17 Release Schedule:
February 28th, 2012 - Fedora 17 Alpha release
April 3rd, 2012 - Fedora 17 Beta release
May 8th, 2012 - Fedora 17 final release

Download Fedora 17 Alpha Installable DVD 
Download Fedora 17 Alpha GNOME Live CD
Download Fedora 17 Alpha KDE Live CD 
Download Fedora 17 Alpha Xfce Live CD
Download Fedora 17 Alpha LXDE Live CD

March 01, 2012

Some Photoshop Tips for Developers


If you’re a die-hard coder who needs nothing more than coffee and Vim, perhaps web development isn’t for you. It’s varied. While you certainly need top-notch coding skills, you can’t avoid handling media and graphics. Yes, graphics. Probably in Photoshop.

Photoshop seems a little odd when you first use it. The interface isn’t quite standard on any OS platform and some features will confuse you initially. Persevere with it, though, and you’ll never want to use another graphics package again. Fortunately, there are several ways to make your life a little easier…


1. Quickly Select a Layer

If you’ve received a PSD from a designer, you’ll either find they’ve flattened it (yeah, thanks) or it contains thousands of layers. To locate the layer you need, switch to the Move tool (V), hold down Ctrl and click the element you want. Alternatively, right-click it to view a menu of all layers under the cursor.

2. Easier Layer Management

Navigating multiple layers can be painful. Photoshop offers several options to help you manage long lists:

Assign a name: double-click a layer’s name to change it.
Assign a color: right-click the eye icon and choose a color.
Group layers: click the folder icon (circled) and drag layers into it. Folders can have sub-folders and be re-arranged, renamed, colored, collapsed or hidden.

3. View a Single Layer

It’s often necessary to isolate a single layer. You can do that by switching off every unnecessary ‘eye’ icon but that can take a while if you have many layers. A quicker solution is to hold down Alt and click the ‘eye’ icon on the layer you want. Repeat the action to re-enable the other layers.



4. Apply the Same Style to Another Layer

You can move styles from one layer to another by dragging the “fx” icon on the right-hand edge of the layer block. Hold down Alt at the same time and it’ll duplicate the styles.

5. Create Snapshots

I often find myself undoing several actions to return to a previous state, e.g. when creating graphics in multiple sizes. Clicking undo or finding the correct historical state isn’t always practical. Snapshots are a great option; click the snapshot icon in the History palette and Photoshop will create a copy of the current state which you can return to at any time.

6. Accurate Guides

Guides are useful when you’re lining up elements and slicing images. To quickly add a horizontal or vertical guide, view the rulers (View > Rulers or Ctrl+R), click the ruler and drag the guide to your image.

You should be aware that Photoshop allows guides anywhere — even half way through a pixel. This can lead to inaccurate slicing or unwanted anti-aliasing effects. To prevent the problem, create a rectangular selection first then drag the guide to the selection’s edge where it will snap accurately into place.

7. Multiple Undo

Ctrl+Z performs a standard undo. However, pressing it again undoes the undo — it becomes a redo! If that’s causing you grief, select Edit > Keyboard Shortcuts then expand the Edit in Application Menus. Remove “Ctrl+Z” in Undo/Redo and add it to the “Step Backward” setting.




8. Pick Colors from Anywhere on Your Screen

For years, I used a color picking tool to grab a hex code, opened the color palette and copied it in. There’s no need. When using any of Photoshop’s color-picker tools, click anywhere on an image then drag the cursor off the Photoshop window to any part of the screen.

The only drawback with this method is that you can’t switch to a hidden application — you may need to make the Photoshop window smaller so more of your screen is visible.

9. Easy Ruler Rotations

You’ll often receive images taken by the photographer after they’d had a few drinks. Fortunately, it’s easy to rotate pictures to their natural orientation using the ruler tool (under the same toolbar icon as the eye-dropper).

Draw a line along the horizon in the direction you want to rotate, i.e. if it needs to be rotated clock-wise, draw from left to right. Now select Image > Image Rotation > Arbitrary from the menu — the dialog will show the ruler angle so you can simply click OK.



10. Personalize Your Work space

Developers are a pedantic bunch. We spend hours organizing our desktops and IDEs so we can save a few seconds on repetitive tasks! Photoshop is a complicated beast and it can take time to open and position palettes and windows how you want them. To ensure it can’t be messed with, click the chevron icon at the top-right and save a new workspace.

Tutorials By:  




February 28, 2012

Free And Open Source Alternatives To Flash For Linux


A dedicated Flash player is not the only way to view Flash content. Here are two of the major open source alternatives that offer Flash access to Linux users.


 If you prefer to stay away from Windows and support the open source Linux platform then Adobe's Flash might create troubles for you now. With Adobe announcing plans to discontinue its standalone Flash Player for Linux, its updated versions will be available to Linux users only through Google's Chrome browser.


It would also be interesting to note how much longer Flash will be important to Adobe as HTML5 grows. Till then, do not lose heart! A dedicated Flash player is not the only way to view Flash content. A report by PCWorld lists down two of the major open source alternatives that offer Flash access to Linux users. 



Gnash:
It is a free and open source Flash movie player based on GameSWF. The best part of this tool is that it is available both as a standalone player and as a browser plug-in for Firefox and all other Gecko-based browsers. The latest version Gnash 0.8.10 can be downloaded from GNU.org site. According to its developers, Gnash flawlessly plays videos from popular video sites such as YouTube, Vimeo and others.

Lightspark:
Apart from Gnash, another free and open source alternative is Lightspark. It is a Flash player and doubles up as browser plug-in too. According to its developers, it "supports YoutTube well enough for daily use". The latest release of Lightspark, 0.5.4.1, was just launched at the beginning of February. It can be downloaded free of cost from the Launchpad site.


February 09, 2012

Integrate jQuery in HTML

jQuery simplifies building rich, interactive web frontends. Getting started with this Javascript library is easy, but it can take years to fully realize its breadth and depth. In this excerpt from jQuery Cookbook, the authors quickly get you up to speed by showing you how to quickly and efficiently add the jQuerry library to your HTML


There are currently two ideal solutions for embedding the jQuery library in a web page:

Use the Google-hosted content delivery network (CDN) to include a version of jQuery (used in this tutorial).
Download your own version of jQuery from jQuery.com and host it on your own server or local filesystem.

Including the jQuery Javascript library isn’t any different from including any other external Javascript file. You simply use the HTML <script> element and provide the element a value (URL or directory path) for its src="" attribute, and the external file you are linking to will be included in the web page. For example, the following is a template that includes the jQuery library that you can use to start any jQuery project:

===========================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<span class="strong"><strong><script type="text/Javascript"</strong></span>
<span class="strong"><strong>src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script></strong></span>
</head>
<body>
<script type="text/Javascript">
alert('jQuery ' + jQuery.fn.jquery);
</script>
</body>
</html>
===========================================================


Notice that I am using—and highly recommend using for public web pages—the Google-hosted minified version of jQuery. However, debugging Javascript errors in minified code is not ideal. During code development, or on the production site, it actually might be better to use the nonminified version from Google for the purpose of debugging potential Javascript errors. For more information about using the Google-hosted version of jQuery, you can visit the Ajax libraries API site on the Web at http://code.google.com/apis/ajaxlibs/.

It’s of course also possible, and mostly likely old hat, to host a copy of the jQuery code yourself. In most circumstances, however, this would be silly to do because Google has been kind enough to host it for you. By using a Google-hosted version of jQuery, you benefit from a stable, reliable, high-speed, and globally available copy of jQuery. As well, you reap the benefit of decreased latency, increased parallelism, and better caching. This of course could be accomplished without using Google’s solution, but it would most likely cost you a dime or two.

Now, for whatever reason, you might not want to use the Google-hosted version of jQuery. You might want a customized version of jQuery, or your usage might not require/have access to an Internet connection. Or, you simply might believe that Google is “The Man” and wish not to submit to usage because you are a control freak and conspiracy fanatic. So, for those who do not need, or simply who do not want, to use a Google-hosted copy of the jQuery code, jQuery can be downloaded from jQuery.com and hosted locally on your own server or local filesystem. Based on the template I’ve provided in this recipe, you would simply replace the src attribute value with a URL or directory path to the location of the jQuery Javascript file you’ve downloaded.

Thanks adfm for sharing this article.


HTML 5 Cheat Sheet (PDF)



XHTML 2 is dead, long live HTML 5! According to W3C News Archive, XHTML 2 working group is expected to stop workend of 2009 and W3C is planning to increase resources on HTML 5 instead. And even although HTML 5 won’t be completely supported until 2022, it doesn’t mean that it won’t be widely adopted within the foreseeable future.
So in the spirit of the upcoming change there is release of a handy printable HTML 5 Cheat Sheet by smashingmagazine that lists all currently supported tags, their descriptions, their attributes and their support in HTML 4.
Please notice that the specification is an ongoing work, and is expected to remain so for many years, although parts of HTML 5 are going to be finished and implemented in browsers before the whole specification reaches final Recommendation status.
Here's the download link of the HTML5 cheatsheet.

downloadable link of HTML5 cheatsheet

Programming & Internet History


October 13, 2011

Five Profitable Website Design Tips Website Design Tips


Designing a website is never easy, especially with technology changing on a regular basis. Every person who uses the internet on a regular basis understands this instinctively. You are constantly evaluating sites as you navigate, for content and style.

For whatever reason you are launching an affordable website design, the goals are going to be the same. You want to keep visitors interested and allow them to move freely from the home page without getting jammed. If at any point a visitor feels confusion, chances are they are moments away from leaving.

Early exits from your site defeat the purpose. In fact, it may force you to decide on the viability of certain key features of your site. This trap can be avoided if you design your site well from the start. Remember, it is much easier to upgrade a well-constructed site than to start over from scratch. Follow these five tips to get web design right the first time.

 1. Make navigation easy. This rule tops the list because it can never be overstated. Websites which feature tedious paths to follow are not popular. A website doesn’t have to wow a visitor from the get-go, but it should allow visitors to see all it has to offer with minimal fuss. One tip is to keep links to a minimum on the home page. Drop-down menus offer the developer many options, as do duplicated links of site highlights. There is no point in hiding the jewels.

 2. The layout is clear and clean. Getting the spacing right is no small feat, but it is one of the ingredients of any good affordable e-commerce website. Whether your pages are content-heavy or picture-heavy, let the material breathe, with plenty of white (or whatever background color) space for it to stand out. Remember also that different fonts can be problematic on certain computers, so plan accordingly.

3. Consider different screen resolutions. With websites with extended content (i.e., long articles which require lengthy pages), you will need to try and accommodate the different screen resolutions of visitors. To limit scrolling, find a layout which has the ability to stretch and present itself without issue.

4. Cut down on loading times. One common error in web design involves extended page load times. The goal is not to blow the mind of the visitor while taking 45 seconds to do so. Visitors think of what else they could be doing with their time, rather than why they should stay. Keeping graphics to the barest minimum will circumvent this problem. Unused scripts can also cause delays and send visitors packing.

5. Work on scale. Seeing into the future is impossible, but we can all be sure that computers and the internet itself will change. Think of the best possible way to scale your site and its design to accommodate changes that are sure to come in the future. A useful exercise is going back over the last few years and examining the progress of that time period.

Happy Designing

August 14, 2011

Microsoft Silverlight for Business Applications



Your users want an application that’s easy to use. Your developers want to do something cool. You want to complete the project on time and in budget. Can Silverlight help you? Below are the top ten reasons you should consider Silverlight for your line of business applications.
10. It’s platform-neutral – Silverlight doesn’t rely on the Windows OS or a specific browser so you don’t have to force your end users to use certain technologies and frameworks. They can use what works best for them.
9.    Simple deployment – Since Silverlight is Web-based, it doesn’t require the .NET Framework to be installed on client machines, greatly simplifying application deployment
8.    Your developers already know .NET – Because Silverlight is a .NET-based platform, you can leverage the skills your developers already have.
7.    Readily available suites of third party controls (e.g., TelerikInfragistics, etc.) - In addition to the more than 60 controls available within the Silverlight SDK, there is a growing library of third-party controls, making your developers that much more productive.
6.    Can be used to enhance existing web and SharePoint sites incrementally – It’s not all or nothing with Silverlight. You can easily add to existing web or SharePoint applications by integrating new Silverlight components into these existing sites when needed.
5.    Users are more productive because of the rich, interactive interface – If your end users are used to working with Windows Forms desktop applications, they’ve come to expect a certain level of interactivity and usability that is harder to accomplish with Web applications. In addition to its advanced graphics capabilities, Silverlight offers a comprehensive set of controls to make data input and manipulation easy and intuitive.
4.    Applications can be developed to run “out of browser” – Out of browser applications run on the user’s desktop and offer the ability to work without a connection to the Internet. With Silverlight’s ability to detect network connections, the application can be brought online and synced to the database with the click of a button.
3.    It offers amazing data visualization tools out-of-the-box – Deep Zoom and Pivot Viewer are two examples of controls that make high performance business intelligence applications possible in a fraction of the time.
2.    It allows secure interaction with databases, the desktop file system, devices, and Microsoft Office – Running on the client’s computer, Silverlight can utilize computer resources directly, allowing you to include features in your applications that would be difficult or impossible to implement in a standard web app.
1.    Applications can be developed faster and your end users made more productive, meaning a higher ROI for your business –  It all boils down to dollars and cents. Silverlight leverages the skills and development infrastructure you already have and allows you to provide your end users with the tools they need to do their jobs more efficiently. More efficiency + more productivity = more profit.
source:http://blog.farreachinc.com

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | coupon codes

HTML Hit Counter