Total Pageviews

Monday, 1 December 2014

Exam 70-463 Datawarehouse

Preparing for 70-463 Exam : Implementing a Data Warehouse with Microsoft SQL Server 2012

 
 
 
 
 
 
Rate This

After passing 70-461 exam last year I’m now preparing for 70-463 exam i.e. Implementing a Data Warehouse with Microsoft SQL Server 2012. This exam mainly focuses on implementing Data Warehouses with Dimension & Fact tables, working with SSIS packagesand Data Quality solutions. Thus being a Database Developer (primarily) this exam will be bit tough for me as I’ve not worked with Dimensional modelling, SSIS and DQS.
This exam is primarily intended for ETL and Data Warehouse (DW) developers who create Business Intelligence (BI) solutions, and whose responsibilities include Data Cleansing, and Extract Transform Load and Data Warehouse implementation.
–> The Exam is divided into 5 modules:
1. Design and Implement a Data Warehouse
2. Extract and Transform data
3. Load Data
4. Configure and deploy SSIS solutions
5. Build Data Quality solutions
You need to brush up on following Skills in the these Modules:
-:Check links with the below items for more information:-
-> Design and Implement a Data Warehouse | 11%
– Introducing Star and Snowflake Schemas
– Design and Implement Dimensions
– Design and Implement Fact tables
– Managing the Performance of a Data Warehouse
- PREP links: Introduction to dimensions (Analysis Services – multidimensional data) |Dimension relationships | Columnstore indexes
-> Extract and Transform data | 23%
– Define Connection managers
– Design Data Flow
– Implement Data Flow with Transformations
– Control Flow tasks and Containers, Precedence Constraints
– Manage SSIS package execution
– Implement Script tasks in SSIS
- PREP links: Integration Services (SSIS) connections | Data flow | Slowly changing dimension transformation
-> Load Data | 27%
– Design control flow
– Implement package logic by using SSIS variables and parameter
– Implement Control flow
– Implement Data Load options
– Implement Script components in SSIS
– Slowly Changing Dimensions
– Preparing a Package for Incremental Load
– Package Transactions, Checkpoints, Event Handlers
- PREP links: Integration Services transactions | Developing a custom task | Integration Services (SSIS) parameters
-> Configure and Seploy SSIS solutions | 24%
– Troubleshoot Data Integration issues
– Install and Maintain SSIS components
– Implement Auditing, Logging, and Event handling
– Deploy SSIS solutions
– Configure SSIS security settings
– Data Mining Task and Transformation
– Preparing Data for Data Mining
– Implementing SSIS Fuzzy Transformations
- PREP links: Troubleshooting tools for package development | Load-balancing packages on remote servers by using SQL Server Agent | Integration Services (SSIS) logging
-> Build Data Quality Solutions (DQS) | 15%
– Install and maintain Data Quality services
– Creating and Maintaining a Knowledge Base
– Create a Data Quality project to clean data, Profiling Data and Improving Data Quality
– Using DQS and the DQS Cleansing Transformation
– Implement Master Data Management (MDM) solutions
– Using Master Data Services Add-in for Excel
- PREP links: Install Data Quality Services | Install Master Data Services | Master Data Services features and tasks

Wednesday, 19 November 2014

Adobe Acrobat Tutorial

How to save ONE single page of pdf document?

  1. Click Tools
    1. Click Pages
    2. Click Extract
      1. Put the page number you want to extract
      2. Check - Extract Pages as separate file

Removing sensitive content



Why remove sensitive content?

Before you distribute a PDF, you may want to examine the document for sensitive content or private information that can trace the document to you. Such information can be hidden or not immediately apparent. For example, if you created the PDF, the document metadata normally lists your name as the author. You may also want to remove content that can inadvertently change and modify the document’s appearance. JavaScript, actions, and form fields are types of content that are subject to change.
Use the Remove Hidden Information feature to find and remove hidden content from a PDF. Use the Black Out & Remove Content tools to remove sensitive images and text that are visible in a PDF.

Find and remove hidden content

Use the Remove Hidden Information feature to find and remove content from a document that you don’t want, such as hidden text, metadata, comments, and attachments. When you remove items, additional items are automatically removed from the document. Items that are removed include digital signatures, document information added by third-party plug-ins and applications, and special features that enable Adobe Reader users to review, sign, and fill PDF documents.
To examine every PDF for hidden content before you close it or send it in e-mail, specify that option in the Documents preferences using the Preferences dialog box.
  1. Choose Tools > Protection > Remove Hidden Information. If you don’t see the Protection panel, see the instructions for adding panels at Task panes.
    If items are found, they are listed in the Remove Hidden Information panel with a selected check box beside each item.
  2. Make sure that the check boxes are selected only for the items that you want to remove from the document. (See Remove Hidden Information options.)
  3. Click Remove to delete selected items from the file, and click OK.
  4. Choose File > Save, and specify a filename and location. If you don’t want to overwrite the original file, save the file to a different name, location, or both.
The selected content is permanently removed when you save the file. If you close the file without saving it, repeat this process, making sure to save the file.

Remove Hidden Information options

Metadata
 
Metadata includes information about the document and its contents, such as the author’s name, keywords, and copyright information, used by search utilities. To view metadata, choose File > Properties.
File Attachments
 
Files of any format can be attached to the PDF as an attachment. To view attachments, choose View > Show/Hide > Navigation Panes > Attachments.
Bookmarks
 
Bookmarks are links with representational text that open specific pages in the PDF. To view bookmarks, choose View > Show/Hide > Navigation Panes > Bookmarks.
Comments And Markups
 
This item includes all comments that were added to the PDF using the comment and markup tools, including files attached as comments. To view comments, choose the Comments pane.
Form Fields
 
This item includes form fields (including signature fields), and all actions and calculations associated with form fields. If you remove this item, all form fields are flattened and can no longer be filled out, edited, or signed.
Hidden Text
 
This item indicates text in the PDF that is either transparent, covered up by other content, or the same color as the background.
Hidden Layers
 
PDFs can contain multiple layers that can be shown or hidden. Removing hidden layers removes these layers from the PDF and flattens remaining layers into a single layer. To view layers, choose View > Show/Hide > Navigation Panes > Layers.
Embedded Search Index
 
An embedded search index speeds up searches in the file. To determine if the PDF contains a search index, choose View > Tools > Document Processing > Manage Embedded Index. Removing indexes decreases file size but increases search time for the PDF.
Deleted Or Cropped Content
 
PDFs sometimes retain content that has been removed and no longer visible, such as cropped or deleted pages, or deleted images.
Links, Actions And JavaScripts
 
This item includes web links, actions added by the Actions wizard, and JavaScripts throughout the document.
Overlapping Objects
 
This item includes objects that overlap one another. The objects can be images (composed of pixels), vector graphics (composed of paths), gradients, or patterns.

Redact (black out and remove) sensitive content

Redaction is the process of permanently removing visible text and graphics from a document. You use the Black Out & Remove Content tools (also called redaction tools) to remove content. In place of the removed items, you can have redaction marks that appear as colored boxes, or you can leave the area blank. You can specify custom text or redaction codes to appear over the redaction marks.
Note: If you want to locate and remove specific words, characters, or phrases, use the Search & Remove Text tool  instead.

Text marked for redaction (left), and redacted (right)
  1. Choose Tools > Protection > Mark for Redaction . If you don’t see the Protection panel, see the instructions for adding panels at Task panes.
  2. (Optional) To set the appearance of redaction marks, click Redaction Properties. (See Change the look of redaction marks.)
  3. Mark items you want to remove by doing any of the following:
    • Double-click to select a word or image.
    • Drag to select a line, block of text, object, or area.
    • Press Ctrl as you drag to select areas of a page in a scanned document.
    To preview how your redaction marks appear, hold the pointer over the marked area.
  4. To apply multiple code entries to a single redaction, right-click a redaction mark and select an option. For more information, see Apply multiple code entries to a single redaction.
  5. (Optional) To repeat a redaction mark, right-click it and choose Repeat Mark Across Pages. This feature is convenient if a particular header, footer, or watermark appears in the same location on many pages.
  6. Click OK to remove the items. The items aren’t permanently removed from the document until you save it.
  7. If you want to search for and remove hidden information in the document by using the Remove Hidden Information feature, click Yes in the dialog box. Otherwise, click No.
  8. Choose File > Save, and specify a filename and location. The suffix “_Redacted” is appended to the filename. If you don’t want to overwrite the original file, save the file to a different name, location, or both.

Search and remove text

Use the Search & Remove Text tool to find and remove words or phrases in one or more PDFs that contain searchable text.
Note: The Search & Remove Text tool doesn’t search secured (encrypted) PDFs.
  1. Choose Tools > Protection, and select the Search & Remove Text tool . If you don’t see the Protection panel, see the instructions for adding panels at Task panes.
  2. Specify if you want to search the current PDF or all PDFs in another location.
  3. Do one of the following:
    • To search for only one word or phrase, choose Single Word Or Phrase and type the word or phrase in the text field.
    • To search for multiple words, select Multiple Words Or Phrase, and then click Select Words. Type each word in the New Word Or Phrase text field and click Add. You can also import a text file with the list of words or phrases to search for.
    • To search for a pattern (for example, phone numbers, credit card numbers, e-mail addresses, social security numbers, or dates), click Patterns. Choose one of the available patterns. You can change the language version of the patterns. (See Select a different language version for patterns.)
  4. Click Search & Remove Text.
  5. In the search results, click the plus sign (+) next to the document name to see all occurrences of the word or phrase. Then, select the occurrences you want to mark for redaction:
    • To select all occurrences in the list, click Check All.
    • To select individual occurrences, click the check box for each one you want to redact. Click the text next to a check box to view the occurrence on the page.
    • To mark none of the occurrences, close the Search window or click New Search to start over.
    • To mark whole words or partial words (characters) for redaction, select the option under Redaction Mark Options. For partial words, click Settings and specify the number and location of the characters for redaction. Character redaction is useful if you’re searching for a pattern, like credit card numbers, and want to leave part of the number visible for identification purposes.
  6. If you selected occurrences that you want to mark for redaction, click Mark Checked Results For Redaction.
    The items you selected in the list are shown marked for redaction.
    Note: If you haven’t saved the file, you can select redaction marks in the document and press Delete to remove the redaction mark. The redaction marks become permanent after you save the file.
  7. To remove the marked items, click Tools > Protection > Apply Redactions, and then click OK.
    The items aren’t permanently removed from the document until you save it.
  8. If you want to search for and remove hidden information in the document by using the Remove Hidden Information feature, click Yes. Otherwise, click No.
  9. Choose File > Save, and specify a filename and location. If you don’t want to overwrite the original file, save the file to a different name, location, or both.

Select a different language version for patterns

Localized patterns appear in the Search panel (Protection > Search & Remove Text).
  1. Choose Edit > Preferences (Windows) or Acrobat > Preferences (Mac OS).
  2. From the Categories on the left, select Documents.
  3. In the Redaction area, choose a language from the Choose Localization For Search & Remove Text Patterns menu.

Change the look of redaction marks

By default, thin red outlines appear around images and text you mark for redaction, and black boxes appear in place of redacted images and text. You can set the default appearance of redaction marks before you mark items for redaction. You can also change the look of redaction marks before you apply the redactions.

Set the default look of all marks

  1. Click Tools > Protection > Redaction Properties. If you don’t see the Protection panel, see the instructions for adding panels at Task panes.
  2. On the Appearance tab, select options you want to change, and then click OK:
    • Click the Redacted Area Fill Color icon and select a fill color from the Color palette for the boxes that replace removed items. Choose No Color to leave the redacted area blank.
    • Select Use Overlay Text if you want to select the custom text or redaction code options. Select the font, size, and text alignment.
    • Select Custom Text, and type the text you want to appear in the redacted area.
    • Select Redaction Code, and then either select a code within an existing set, or click Edit to define a new code set or a new code. (See Create redaction codes and code sets.)
    • In the Redaction Mark Appearance area, click the Outline Color icon or Fill Color icon or both. Select a color from the color palette for the images and text you mark for redaction. Move the slider to adjust the opacity of the color. Choose No Color to leave the selected area blank.

Properties for redaction text

Custom Text
 
Displays text you type into the Custom Text option over the redaction mark.
Font
 
Displays custom text in the selected font.
Font Size
 
Displays custom text in the selected point size.
Auto-Size Text To Fit Redaction Region
 
Resizes custom text to fit within the redacted area. When selected, this option overrides the Font Size setting for the overlay text.
Font Color
 
Displays custom text in the selected color, which you can change by clicking the color swatch.
Repeat Overlay Text
 
Fills the redacted area with as many instances of the custom text as needed, without changing the font size. For example, if you specify the letter x or a hyphen (-) as the custom text, these characters are repeated throughout the redacted area.
Text Alignment
 
Aligns text to the left, right, or center.

Redaction codes

Acrobat uses overlay text to overprint areas selected for redaction. One example of overlay text is a redaction code, which consists of one or more code entries from a collection of code entries called a code set. Acrobat includes the U.S. FOIA and U.S. Privacy Act code sets that you can use. You can use either codes or custom text to create overlay text. The difference is that redaction codes are text entries that you can save, export, and import. One code set can contain multiple codes.
Note: Codes don’t save the current attributes for overlay text as part of the code definition, such as colors, font characteristics, and repetition or size of text. Codes only make the overlay text itself reusable in future sessions and by other users with whom you share code sets. You set other attributes for the code in the Redaction Tool Properties dialog box.

Create redaction codes and code sets

  1. Click Tools > Protection > Redaction Properties . If you don’t see the Protection panel, see the instructions for adding panels at Task panes.
  2. Select Use Overlay Text.
  3. Select Redaction Code.
    • To add multiple code entries to a redaction code, select an entry from the Code Entries list and click Add Selected Entry. Repeat as desired. Select Remove Selected Entry to delete a code entry.
    • Click Edit Codes to make additional changes.
  4. In the Redaction Code Editor dialog box, click Add Set.
  5. (Optional) Type a new name for the set in the text field below the list of code sets, and then click Rename Set.
  6. Click Add Code, and type the text that you want to appear as overlay text in the text field below the list of code entries, and then click Rename Code.
  7. Repeat the previous step to add another code entry to that code set, or repeat the previous three steps to create additional code sets and codes.

Edit redaction codes and code sets

  1. Click Tools > Protection > Redaction Properties . If you don’t see the Protection panel, see the instructions for adding panels at Task panes.
  2. Select Use Overlay Text, and then select Redaction Code.
  3. Select a code set from the list on the left, and click Edit Codes.
  4. In the Redaction Code Editor dialog box, do any of the following:
    • To remove a code set and all of the code entries within it, select the code set and click Remove Set.
    • To export a code set to a separate XML file that you can reuse in other PDFs or share with others, select the code set. Then click Export Set, specify a filename and location, and click Save.
    • To import a previously saved code set, click Import Set, locate and select that file, and click Open.
    • To rename a code set, type a new name in the box below the list and click Rename Set.
  5. With the code set selected, select the code entry that you want to edit, and do one of the following:
    • To remove a code entry, click Remove Code.
    • To rename a code entry, type a new name in the box below the list and click Rename Code.

Apply multiple code entries to a single redaction

  1. Right-click the redaction marker. Choose a code set or code entry from the list at the bottom of the context menu.
  2. Select a code set from the list at the bottom of the context menu, and then select a code entry from the drop-down menu. A check mark appears next to the code entry when the code is applied.
  3. Repeat the previous step to add another code entry to the redaction.
Hold your pointer over the redaction mark to see the code entries, each one separated by a comma.
Another way to add multiple code entries to a redaction is by using the Redaction Properties dialog box. In the Protection panel, click Redaction Properties. Select Redaction Code, select a code entry, and then click Add Selected Entry.

Additional resources

For videos and articles on removing sensitive content, see these resources:

Sunday, 16 November 2014

Google Chrome: Does not show find menu

Go to menu > settings
Scroll to the bottom and choose "show advanced settings.."
Scroll to the bottom again and untick
[ ] Use hardware acceleration when available

Wednesday, 18 June 2014

iPhone/iPad: Rotate Upside Down iPad Videos

Rotate and Watch a Video in VLC
Download, install, and run VLC Media Player. (See download link below)
sshot-12
Open your video file by going to Media  > Open File… and browsing for your file. Or, by just dragging and dropping your video onto the VLC player.
sshot-15
Choose Tools from the Menu bar and select Effects and Filters.
sshot-1
On the Video Effects tab, tick the Transform checkbox and choose your degrees of rotation. The video is rotated counter-clockwise, so to rotate clockwise 90 degrees you’ll want to chooseRotate by 270 degrees.
sshot-2
Now you can enjoy your video the way it was intended to be viewed.
sshot-11
Rotate and Convert the Video with Windows Live Movie Maker
Starting with Windows 7, Windows Movie Maker no longer comes pre-installed with the OS. It’s now part of the Windows Live suite that is available as a separate, free download for Windows 7 and Vista. (Windows XP is not supported) You can find the link to our detailed instruction on how to install Windows Live at the end of the article.
To add your video files to Windows Movie Maker, click on Add videos and photos on the Hometab, or drag and drop the video into the blank area on the right side of the application.
sshot-1
Next, you’ll need to rotate the video. Staying on the Home tab, click on the Rotate right 90°
or Rotate left 90°.
sshot-7
You’ll see your video is now oriented properly on the left.
sshot-9
To save and convert your video to WMV format, click the Movie Maker tab just to the left of the Home tab. Hover your cursor over Save movie, and then select your output settings. You also have the option to burn directly to DVD.
sshot-3
 In the VLC Media Player main menu go "Tools" > "Effects and Filters"
image
4. In "Adjustments and Effects" window, choose the "Video Effects" tab
image
5. In "Video Effects" tab, choose "Geometry"
image
6. In "Geometry" click the "Transform" box to enable transform and make sure that the "Rotate by 90 degrees" setting below is selected.  Then choose "Close" to close the window. Notice*: The "Rotate by 90 degrees" setting, rotates your video by 90 degrees clockwise. If you want to rotate your video in a different angle then choose the corresponding angle.image
Now you can view and play your rotated video with VLC Media player (only) in the right angle. 7. If you like to save your recent rotated video, from the main menu go to "Tools" > "Preferences"
image
 8. In Interface Settings look at the left side's bottom and choose to "Show All Settings"
image
 9. At the left pane under "Stream Output" expand "Sout stream" >"Transcode" and at right pane under "Video filter" choose the "Video transformation filter". Then click "Save" to save your settings.
image
 10. From the main menu choose "Media" > "Convert / Save"
image
 11. At "Convert/Save" options at "File" tab, choose "Add…" to add your recently rotated video file and then press the drop-down arrow on the right of "Convert / Save" button to choose "Convert"
image
 12. At "convert" options, choose "Browse", select the destination folder (e.g. "Desktop"), give a file name for the converted file (e.g. "IMG_1822Rotated") and specify the output video file type (e.g. ".MOV")
image
 13. While in "convert" options, choose your profile output: "Video – H.264 + MP3 (MP4)" and then press the "Tools" button on the right side to edit the selected profile.
image
 14. In profile settings, find and click the "Audio codec" tab
image
 15. Inside "Audio codec" settings use the drop-down arrow in codec's line and from the list of codecs choose "MP3". Then click Save.
image
 16. In "Convert" window press "Start" to start the conversion.
image
 17.As "Conversion/Streaming" process is executed, you see the following screen.
image
18. When  the "Conversion/Streaming" process is completed, you can play your video in any media player you like.
Attention: After you rotate and save your videos, you must reset VLC player to it's default settings , by going to: "Tools" > "Preferences" and press the "Reset Preferences" button at the bottom side of Preferences window.
Second method:

Browse for a location to save it and rename the output file if you’d like. Click Save.
sshot-10
You’ll be notified when the file is complete.
sshot-4
Now you’ll have your video properly oriented in WMV file format.
sshot-5
These are two rather easy ways to accomplish rotating your video. Unfortunately, Windows Live Movie Maker doesn’t give you a lot of  options for output. If you want to output to a file, your only choice is WMV format or DVD. However, previous versions will also allow you to export to AVI.

iPhones: Book option is not showing

Hey Guys I was having the exact same problem but i've found the solution. Simply go to the menu tab(at the top left corner) ->click preferences ->General ->under Sources tick "Books". This will enable the books section to appear in your iTunes in the future. Hope this helps, Cheers!

Monday, 2 June 2014

Photoshop: Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Resource:

Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles

Advertisement
Often, it’s the little details that turn a good layout into a great design; details such as subtle textures, shading and smooth shapes. Photoshop contains a vast array of tools for embellishing a design, but choosing the right one isn’t always easy. Being the obsessive-compulsives that we are, we’ve conducted a huge range of experiments to determine the benefits and disadvantages of each technique. Here, then, is an obsessive-compulsive’s guide to some frequently used tools and techniques for Web and UI design in Photoshop.

Noise and Textures

Subtle noise or texture on UI elements can look great, but what’s the best way to add it? Our goal is to find the best method that maintains quality when scaled but that is also easy to implement and edit. To find out which is best, we’ll judge each method using the following criteria:
  • Number of layers used: fewer is better.
  • Ability to scale: if the document is resized, will the effect maintain its quality?
  • Can the noise be on top of the Color and Gradient layer styles?
  • Can the method be used with any texture, not just noise?
Screenshot

1. BITMAP LAYER WITH NOISE

Screenshot
Probably the most obvious method for adding texture to a shape is to create a normal bitmap layer, fill it with a color, select Filter → Noise → Add Noise, then apply a mask or Vector Mask to match the element you’re adding noise to.
Using a high amount of noise, setting the layer blending mode to Luminosity and reducing the opacity will yield the most control over the noise with the least disturbance to the underlying layers. A noise setting of 48% gives a high dynamic range without clipping the noise. (Clipping results in higher contrast, which might not be desirable.)
  • Layers: 2
  • Scales: No, texture will have to be recreated if the document is scaled
  • Works with Color and Gradient layer styles: Yes
  • Works with any texture: Yes

2. INNER GLOW LAYER STYLE

Screenshot
Adding an Inner Glow layer style with the source set to center and the size to 0 will let you use the noise slider to add texture to any layer. It’s a good solution, provided you’re not already using the Glow layer style for something else. The noise is added above the Color, Gradient and Pattern layer styles, which is great.
Unfortunately, the noise can only lighten or darken the underlying elements. The previous bitmap layer method can add highlights and shade at once while maintaining the average luminosity, and it looks far better in my opinion.
  • Layers: 1
  • Scales: Yes, texture will be remade automatically
  • Works with Color and Gradient layer styles: Yes
  • Works with any texture: No

3. SMART OBJECT WITH FILTER

Screenshot
Create a Solid Color layer, convert it to a Smart Object, select Filter → Noise →Add Noise, apply a Vector Mask to match your element, set the layer blending mode to Luminosity and reduce the layer’s opacity.
It’s a fairly involved process, but it can accommodate a combination of effects that can be remade if the document gets scaled.
  • Layers: 2
  • Scales: Yes, texture will be remade automatically
  • Works with Color and Gradient layer styles: Yes
  • Works with any texture: No

4. PATTERN OVERLAY LAYER STYLE

Screenshot
Start by creating a noise or repeating pattern in a new document, then chooseEdit → Define Pattern. Once you’ve defined the pattern, it will be available in the Pattern Overlay layer style options. As with previous methods, usingLuminosity as a blending mode and reducing the opacity to suit it yield great results.
The Pattern layer style is composited below the Color and Gradient styles, ruining an otherwise perfect noise and texture method. However, you can create a second layer that just holds the texture if you need to, or start with a Gradient Fill layer, sidestepping the limitation.
  • Layers: 1
  • Scales: Yes, but you’ll need to change the Layer style scale to 100% after scaling
  • Works with Color and Gradient layer styles: No, the pattern appears underneath
  • Works with any texture: Yes

WHICH METHOD IS BEST?

Although a little cumbersome, creating a Gradient Fill layer, adding a Pattern layer style, then creating a Vector Mask seems to be the best method possible. This can be used to create flexible, scalable and editable single-layer UI elements with texture. As a bonus, Gradient Fill layers can be dithered and so also produces the highest quality results (Gradient layer styles cannot be dithered).
We’ve created some examples below and included the source document so that you can see how they were built.
Screenshot

Rounded Rectangles

Rounded rectangles, or “roundrects” as QuickDraw so fondly calls them, are standard fare on a Web and interface designer’s utility belt. They’re so common that it’s rare for Web pages or apps to not contain a roundrect or two. Unfortunately, pixel-locked rounded rectangles can actually be fairly difficult to draw in Photoshop. (By pixel-locked, I mean that every edge falls on an exact pixel boundary, creating the sharpest object possible.)
Experienced Photoshop users will probably already know one or two ways to draw a roundrect. Hopefully, after reading this article, they’ll also know a couple more, as well as which methods produce pixel-perfect results.

1. ROUNDED RECTANGLE VECTOR TOOL

Photoshop’s Rounded Rectangle vector tool appears like the ideal candidate for the task, until you realize that the edges it creates are blurry and inconsistent.
Screenshot
Fortunately, there is a fairly well-hidden option that locks the Rounded Rectangle vector tool’s output to the pixel grid. Excellent.
To enable pixel-locked drawing for the Rounded Rectangle vector tool, check the “Snap to Pixels” option in the Options bar. If you have “Snap to Pixels” turned off, drawing at 100% zoom achieves the same result.
Screenshot
The result is perfect roundrects, every time. The only downside is that the corner radius can’t be altered during or after drawing the shape. If you need a different radius, you’re forced to draw it again. It’s a shame the roundrect tool isn’t like Illustrator in this regard, where the up and down arrow keys increase and decrease the corner radius while drawing.
On the positive side, keeping your objects as vectors means that you’ll be able to resize the document and the corners will take full advantage of any extra resolution. There is one small caveat though: if you resize, you’ll have to do it as an exact multiple, or risk fuzzy non-pixel–locked edges.
If you’re being pedantic about the results, you may notice that the antialiasing on the first half of each corner doesn’t match the second half — you’ll have to look carefully to notice, though. For example, looking at the zoomed corner below, the start of the corner to the apex isn’t identical to the apex to the end of the corner (starting from either side). In practice, that probably won’t create any issues.
Screenshot

2. BLUR

The blur method is a bit of a hack that involves creating a selection, blurring it, then increasing the contrast so that you’re left with a sharp mask that’s antialiased nicely.
It’s seven steps in total and is prone to being inaccurate; plus, the radius of the corners can’t be changed on the fly. Applying levels can also be a bit fiddly. One advantage is that different levels settings can be used to obtain different degrees of antialiasing, from incredibly soft to completely aliased.
  1. Create a new layer.
  2. Draw a rectangular selection.
  3. Enter quick mask (Q).
  4. Gaussian blur by half the radius that you’d like for the rounded corners. (For example, a 10-pixel radius would need a 5-pixel blur.)
  5. Apply Levels (Command + L), and use about 118 for the black point and 137 for the white point on the input levels.
  6. Exit quick mask (Q).
  7. Fill selection.
Screenshot
On the positive side, this blur method can be used to quickly create some interesting and organic shapes that would be difficult to draw by hand.
Screenshot

3. CIRCLES

The circles method is very accurate and easily reproducible, but has a whopping 13 steps. That’s a lot of clicking for just a single roundrect.
  1. Create a new layer.
  2. Make a circular selection that is twice as large as the radius you would like (for example, a 10-pixel radius would require a 20×20-pixel circle).
  3. Fill the selection.
  4. Move the selection right. This can be done quickly by holding down Shift and pressing the right-arrow key a few times.
  5. Fill the selection.
  6. Move the selection down.
  7. Fill the selection.
  8. Move the selection left.
  9. Fill the selection.
  10. Make a rectangular selection that covers the entire vertical span of the roundrect but that starts and ends halfway through the circles at the ends.
  11. Fill the selection.
  12. Make a rectangular selection that covers the entire horizontal span of the roundrect but that starts and ends halfway through the circles at the ends.
  13. Fill the selection.
Screenshot

4. STROKE

The stroke method is very accurate, easily reproducible and has only about four steps, depending on the result you’re after. The corners are a bit sharper than those of the circle method, though. That may be a good thing or a bad thing, depending on your preference.
  1. Create a new layer.
  2. Draw a rectangular selection that is smaller than the area you require (smaller by double the radius, if you want to be exact).
  3. Fill the selection.
  4. Add a stroke as a layer style that is as thick as the corner radius you would like.
If you’d like to flatten the object to remove the stroke, keep following the steps below.
  1. Create a new layer.
  2. In the Layers palette, select the new layer and the previous layer.
  3. Merge layers (Command + E).
Screenshot
It’s possible to automate the flattening with a Photoshop Action. This can also be set up as a function key to speed things up further.
A huge advantage of the stroke method is that it’s dynamic, so the radius can be edited in real time. It can also be used to easily create other rounded shapes, as seen below.
Screenshot

WHICH METHOD IS BEST?

In most cases, using the Rounded Rectangle tool with “Snap to Pixel” turned on will give great results and be the quickest method. If you’d like the ability to change the corner radius without redrawing, then the stroke method is the one to use.
However, as seen below, each method yields different results. So, depending on what you’re after, you may need to use a combination of methods.
Screenshot
All tests were completed using Photoshop CS4 and CS5 on a Mac. Behavior for both versions was consistent.

Gradients

Gradients are a great way to add life-like lighting and shading to surfaces. When built with gradient layers and layer styles, they also ensure that UI elements can be scaled and reused easily.

LINEAR GRADIENTS

Linear gradients are gradients in their most basic form — a gradual blend of colors and following a straight line. I’m sure you knew that, so onto the more interesting stuff.
Screenshot

REFLECTED GRADIENTS

Reflected gradients are like their linear friends, but they repeat the gradient twice, with the second repeat mirrored. This makes editing a little less tedious, provided it fits the result you’re after.
Screenshot

RADIAL GRADIENTS

Radial gradients start from the center (or any chosen point) and grow outward in a circular pattern. They’re handy for creating spheres and applying effects to the edge of circular elements. The center point of the gradient can be moved by clicking and dragging on the canvas while the gradient window or layer styles window is open.
Screenshot

ANGLE GRADIENTS

Angle gradients can be a great way to mimic environmental reflections found on highly polished metallic objects. The center point of the gradient can be moved by clicking and dragging on the canvas while the gradient window or layer styles window is open.
Screenshot

GRADIENTS ON GRADIENTS

Anything worth doing is worth overdoing, right? Combining a gradient layer with a gradient layer style lets you overlay two different gradients, giving more complex and — here’s the good part — completely dynamic results. To combined the gradients, you’ll need to set a blending mode for the gradient layer style. For the examples below, I’ve used either Screen (good for lightening) or Multiply (good for darkening).
Screenshot

DITHERING IS EVERYTHING

Adding dithering to a gradient produces smoother results. Non-dithered gradients often contain visible banding. Dithering is even more important if your artwork is being viewed on cheaper 6-bit per channel TN LCDs and certain display typesthat tend to amplify posterization problems.
Screenshot
If you’re not seeing the difference, here’s an extreme and completely unrealistic example of gradient dithering in action:
Screenshot
Ensuring that your gradients are dithered is easy: just check the appropriate box in Photoshop.
Screenshot
Note that gradient layer styles can’t be dithered, and gradients in placed objects (such as stuff you’ve pasted from Illustrator) aren’t dithered.
If you use transparency in a gradient, that won’t be dithered either, which can be a huge issue at times. There is a solution for some specific cases: if you’re using a gradient with transparency to lighten an area with white, then using a non-transparent gradient with a Screen Layer blending mode will let you dither it. The same technique can be used for darkening with the Multiply blending mode.
Screenshot
A combination of the gradient techniques described above were used to create the Mac app icon below.
Screenshot

GRADIENT MAPS

Quite different to other types of gradients, gradient maps can be a great way to add color treatment, allowing for very precise control. Gradient maps use the brightness of each pixel to map to a corresponding color in a gradient.
If the gradient starts at red and ends at blue, then everything white in the image will turn red, and everything black will turn blue. Everything in the middle tonally will map to the gradient, depending on how bright it is.
The image below was used in a poster for Kingswim, a swimming school:
Screenshot
With a gradient map. Large view
Without the gradient map, things look quite different. It’s a composite of about seven photos; the boy and background were shot on black and white film with intentionally low contrast so that the grain would be more prominent when the contrast was pushed by the gradient map. The gradient map also hides the color mismatches in the compositing.
Screenshot
Gradient map off. Large view

A Little Obsessed?

Absolutely. I conducted all of the tests above to learn more about some common techniques that I already use: that is, to reassess and fine tune, with the aim of improving my designs. Creating great artwork without intimately knowing your tools is certainly possible, but the more you know, the more likely you are to work faster and with greater confidence.
Would you like to know more about a specific technique or Photoshop feature? Please let us know in the comments.
(al)
Smashing Book #4It's done. The Smashing Book #4, our brand new book with smart techniques, ideas and approaches for front-end development and design. Written by respected designers and developers, neatly packed in a gorgeous hardcover. Get the book now.