SEARCH W7R

Showing posts with label ImproveEfficiency. Show all posts
Showing posts with label ImproveEfficiency. Show all posts

Saturday, June 23, 2012

Regular Expressions

w7r.blogspot.com

Regex Basics

  • Regex stands for regular expressions
  • Used to describe patterns in text files
  • Can detect dynamic patterns, such as phone numbers followed by a persons name
  • Supported in nearly every programming languages with minimal differences
  • A standard for efficient editing of text documents
  • A more powerful version of "Find and Replace"
  • Can save you a lot of time revising typed up work

Like Find and Replace on Roids

If you have heard of the Find, Replace, or Find and Replace feature on Microsoft Word or any other software, then you probably know that it can eliminate a lot of time spent on tedious and repetitive tasks such as changing every occurance of the word "he" with "she" or "Mr" to "Mrs" or "Ms".

Efficiency Is Key

No matter how large and complex a pattern becomes, the time spent finding/coding the correct regular expression will stay relatively the same. Regex code can be reused and altered to describe similar situations that do not match the original expressions criteria.

The reason Regex is efficient is ultimately because you are allowing a computer to repeat the pattern instead of you, your mouse, your eyes, your keyboard do manually.

An Example of Regex's Efficiency

A blogger, such as myself realizes that he has a lot of <b>bold text</b> tags instead of the preferred <strong>bold text</strong>. It was an easy mistake to make using the "Compose" tab in Blogger's post editor, but a very difficult problem to fix via the HTML tab in post editor.

The blogger spends 30 minutes fixing the format for one of his many posts and realizes he can't waste so much time on such a small detail. So, the next time he fixes the format of a post he utilizes the Find and Replace feature and spends only 8 minutes fixing the format of a post of similar length. He's satisfied, but does not want to waste 8 minutes each on all of his posts (8min/1post, 800min/100posts).

Using Regex the same blogger is able to apply the same edits to each post in 1 minute, because all he has to do is reuse his previously written expression (the same changes occur on each blog post). With practice regex code for these canges can be written in under 5 minutes.

Thus, the blogger could apply all the necessary format changes to his 100 blog posts in under 105 minutes. That is 1 hour and 45 minutes well spent!

Here is a regular expression I used to change my <b> tags to <strong> tags


Find: <(\s*)b((>)|(\s+.*>))
Replace: <strong>
Find: <(\s*)/(\s*)b((>)|(\s+.*>))
Replace: </strong>

Sunday, August 14, 2011

Who Doesn't like a Nice View? Windows Shortcut Navigation

   When navigating through groups of folders and files it can be overwhelming, confusing, and tedious to try and find one specific folder. One solution is the Windows 7, Search feature. [start] > *type something* > [enter]
   Often, however, the search feature cannot locate the file you are looking for because it cannot see or interpret its contents or doesn't have user permission to see into certain sections of the users computers. BUT, there is hope and knowledge to be gained right here and now that will eliminate your deepest headaches:
>>View, Sort By, and Group By<< For now I will focus on "View"

   View can be used to edit how the files and folders appear in the navigation panels.
    To edit it: (Directions)
      1.[right click] the panel, not the file, but the white space in the window
      2.hold your cursor over View to have the options revealed on the side: 
  Extra Large Icons; Large Icons; Medium Icons; Small Icons; List; Details; Tiles; Content; Expand All Groups; Collapse All Groups.



My best advice is to try them (above) out because it is easy to undo the changes:
   To undo the changes you made: [Right Click] > [View] > [Select your previous choice(s)]
           or
    Try [Ctrl] + [Z] (little keyboard short cut)

Saturday, August 13, 2011

11 Keyboard Shortcuts Everyone Knows

 These are the most important shortcuts you need to know! Improve your work speed by tenfold!

Mistakes:
      0. Ctrl + Z: Undo

Copy And Paste: 
     1. Ctrl + C: Copy 
     2. Ctrl + V: Paste
Selections:
     3. Ctrl + A: Select All
     4. Ctrl + (left click): Select individual pieces or files
     5. Shift + (left click) + move mouse + (left click): Select all in a row
View:
     6. Ctrl + Shift + [+]: Increase Font Size
     7. Ctrl + Shift + [-]: Decrease Font Size
Internet Navigation:
     8. Alt + Right: Next Page
     9. Alt + Left: Previous Page
     10. Ctrl + R: Reload Page 


For More Shortcuts: http://news.softpedia.com/news/Microsoft-Office-Keyboard-Shortcut-Keys-43011.shtml