Tag Archives: command

Switching From Adobe Fireworks To Sketch: 10 Tips And Tricks

Transitions can be painful. It is in our nature to resist change, even when the possibility of doing something new and different may be exciting. Changing your workflow can be a real challenge if you don’t know where to start or understand how to embark on the change.
I’ve met with many designers (graphic, interaction, UI, etc.) who stick to old software because they are familiar and in their comfort zone, or because they are too scared to take the “leap of faith” and try something new (even when they know their old software does not allow them to work efficiently and effectively enough).

Visit link:  

Switching From Adobe Fireworks To Sketch: 10 Tips And Tricks

WP-CLI – Advanced WordPress Management

The command-line interface (CLI) has always been popular in the world of developers, because it provides tools that boost productivity and speed up the development process. At first sight, it might seem hard to believe that using the command line to perform certain tasks is getting easier than using a graphical interface. The purpose of this article is to clear up your doubts about that, at least concerning WordPress tasks.

View post: 

WP-CLI – Advanced WordPress Management

Become A Command-Line Power User With Oh-My-ZSH And Z

The command line is increasingly becoming a part of every web developer’s workflow. With tools like Grunt, Gulp and Bower leveraging the increase in productivity that comes with working in the command line, we are seeing it become a much more friendly and comfortable place for beginners and experts alike.

This article provides insight into some of the best tools to use in your day-to-day workflow in the command line and gets you started with a totally customized setup. Also, please make sure to check out my series on how to become a command-line power user1, available for free, of course.

Getting The Right Terminal

Before we can start using ZSH, Z and related tools, getting the right terminal application up and running would be extremely helpful. The default Terminal and Powershell applications on OS X and Windows leave much to be desired.

For OS X users, iTerm 22 is recommended as a replacement for OS X’s default Terminal. iTerm 2 introduces some features that are missing in the regular terminal, including commands you would regularly use in your text editor. This includes pane splitting, custom color schemes, paste history, fine-grained control over hotkeys, together with dozens3 of other handy preferences that you will find useful as you become more comfortable in the terminal.

On Windows we have the built-in PowerShell. Most users find this quite different to the interface of the typical UNIX servers used to host websites; it’s also rarely addressed in online tutorials. For this reason, it’s recommended to use an emulator that provides a closer experience to a real UNIX command line, like Linux and OS X do.

You have a couple of options here. The easiest would be to install Cmdr4, which provides Git integration, custom prompt and color schemes out of the box. For most, this will be more than enough to get started with all major web development tooling. It cannot, however, do any of the ZSH and Z that we will be exploring below.

For a full-blown UNIX emulation, there is Cygwin5 which allows us to run all UNIX commands as well as to work with Oh-My-ZSH. It’s not for the faint of heart, but if you are fairly comfortable with Windows, it might be worth trying out. Alternatively there is the all-in-one OH MY CYGWIN6, which might speed up your installation process.

Use ZSH and Oh-My-ZSH

When you start a terminal application, whether it be on your server or your local computer, it is running a shell called Bash. Bash is by far the most popular shell and comes with pretty much every UNIX-based operating system. There are, however, alternatives to Bash that make using the terminal faster and more comfortable for web developers.

One of the most popular shells with web developers is the Z shell, or ZSH. Along with that, we use a ZSH framework named Oh-My-ZSH7.

Installing Oh-My-ZSH is very simple. Simply run the following command and restart your terminal:

curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh

Now, each time you start a terminal session, you will be using ZSH rather than the default Bash!

ZSH Settings

Before jumping into the next few sections, we need to know about ZSH settings. These are stored in a .zshrc file located in your home directory. It’s a hidden file, so you might not see it in your home directory, but you can view it by running open ~/.zshrc from the terminal. Swap out open with your favorite editor command, such as nano, subl or vim.

Now, we aren’t making any changes to this file just yet, but leave it open. Whenever you make a change to this file, you need to source it in order for the changes to take effect in your terminal. To do this, you can either close the current tab and open a new one or run the source ~/.zshrc command from the terminal.

Terminal Customization

Customizing what your terminal looks like is one of the best things you can do. Not only does it make you look like a bad-ass coder, but it can greatly improve readability via different colors. It can also improve productivity by displaying important information related to file path, Git status and more!

Prompts

Prompts are the line(s) of text shown when you are about to type something into the terminal. Your prompt provides useful information related to your project, such as the current version of Ruby, Node.js and so on, the current status of your Git repository, the outcome of the last run task, as well as the current working directory.

You can customize your path into oblivion, but chances are that someone has created a prompt that already suits your needs.

Your ZSH theme is set in the few lines of your .zshrc file. Look for something like ZSH_THEME="robbyrussel" — this is the default theme that comes with ZSH. I recommend setting this to ZSH_THEME="random", which will randomly assign a theme each time you open a new terminal tab or run source ~/.zshrc. Run this a few times until you find one you like; you can find the current theme name by running echo $ZSH_THEME.

01-cobald2-opt-small8
(View large version9)

You can browse all the ZSH themes and prompts in the wiki10. Because there are hundreds of themes, not all of them come with ZSH by default. Any you want will need to be downloaded and placed in ~/.oh-my-zsh/themes; Because this is a hidden directory, you can access it by running open ~/.oh-my-zsh/themes.

Here are a few popular themes:

02-agnoster-opt-small11
Agnoster12 (View large version13)

03-cobalt2-opt-small14
Cobalt215 (View large version16)

04-bira-opt-small17
Bira18 (View large version19)

Note: Many of these themes require a patched font to display the arrows and Git icons. You can download the fonts on GitHub20; then, make sure to set them in your iTerm2 settings.

05-bira-opt-small21
(View large version22)

Color Schemes

Now, the prompts define the standard color to be used, but we’ll use iTerm2 themes to customize what those colors actually look like. By default, the themes come with your basic red, green, yellow and blue, but we can tweak those to be the exact variants that we want.

06-schemes-opt-small23
You can think of these colors as variables we can tweak. (View large version24)

You can edit the colors or even make your own theme in “Preferences” → “Profiles” → “Colors,” or grab one of the existing themes already out there.

The ZSH Cobalt2 prompt also comes with an iTerm2 theme25, and you can find hundreds of them26 with a GitHub search; Bastien Dejean’s repository27 in particular houses a few interesting ones.

File Tabbing

So, now that our terminal is looking great, what can we actually do with ZSH and related tools? Probably one of the most useful features of ZSH is that it enables us to list and tab through files and folders. If you have ever tried to perfectly spell the name of a file, struggled with the case or fought with an impossibly long list of folders with spaces in it, you know the pain and limitations of Bash.

Folder and file tabbing works with any terminal command: cd, trash, cp, open, subl, etc. But for the purposes of this tutorial, let’s use cd for folders and open for files.

Go ahead and type cd (note the space after cd), and hit the “Tab” key twice. You can now use your arrow keys to move over, up and down through the files and folders. To select a folder, hit “Return.” You can now hit “Tab” and “Tab” again to discover subdirectories or hit “Return” to run the command.

This also works for completing file and folder names. Let’s say I’ve got two folders, css/ and /Capitalize. If I type cd c and then hit “Tab” twice, I’ll be able to cycle through all of the folders that start with C. You’ll noticed it’s case-insensitive. This is extremely helpful when you have many files with similar names.

Finally, this also works with command names whose names you might not totally remember. For example, if you’re working with MongoDB, 13 commands are associated with it: mongod, mongodump, mongoexport, mongofiles mongoimport and so on

By typing mong and hitting “Tab,” you’ll see all available commands that start with mong.

ZSH Plugins

ZSH allows you to extend built-in functionality by adding plugins, and it actually ships with a bunch of fantastic ones. To enable a plugin, open your .zshrc file and scroll down until you see the spot where active plugins are defined. To add a new one, just type the name between the parentheses, making sure to include a space between each name.

plugins=(git cloudapp node npm bower brew osx extract z)

Once you’ve added a plugin, you’ll need to either run source ~/.zshrc or open a new tab.

Some recommended ones are:

  • git
    Enabled by default with Oh-My-Zsh, this enables Git aliases, tab completion and descriptions of all Git commands.
    git + tab
  • cloudapp
    Enables uploading of files to CloudaApp right from the command line.
    cloudapp Archive.zip
  • node
    Opens the Node.js API for your current version in your browser.
    node-docs http
  • npm
    Adds autocompletion to npm, displaying all npm commands.
    npm + tab
  • bower
    Adds autocompletion for Bower commands.
    bower + tab
  • brew
    Adds autocompletion and descriptions for all Brew commands.
    brew + tab
  • osx
    Enables a number of Finder commands28 that are accessible via the terminal.
  • extract
    Unzip all types of compressed files.
  • z
    More on this in the next section!

View the entire list of plugins on the Oh-My-ZSH wiki29.

Using Z To Jump To “Frecent” Folders

Z isn’t part of Oh-My-ZSH, but it’s the perfect companion for anyone who heavily uses the command line. The idea behind Z is that it builds a list of your most frequent and recent — “Frecent” — folders and allows you to jump to them quickly in one command, rather than having to tab through a nested folder structure.

To install it, make sure Z is included in the plugins list from above. While this works for most, some users have trouble getting this to work. If that is the case, download download Z30 and put it in your home directory so that it’s located at ~/z.sh. Then, in your .zshrc file, include the following and then source your .zshrc file again.

# include Z, yo
. ~/z.sh

Once it is installed, continue with your regular traversing of directories with your cd command. Z is watching where you frequently and recently have been, and is building a weighted list of directories.

After a few hours of moving around, you can use the z command followed by a word that is in your directory. It uses fuzzy matching to figure out what folder you are trying to get to, and it’s almost always right!

  • z styles might bring you to ~/Dropbox/projects/0202-coffee-shop/styles.
  • z pizza might bring you to ~/Dropbox/projects/0300-pizza/.
  • z pizza styles might bring you to ~/Dropbox/projects/0300-pizza/styles.
  • z 303 might bring you to ~/Dropbox/projects/0303/candy-store/.

For a full list of advanced Z commands, visit the GitHub repository31, or watch the Command Line Power User video on Z.

More, More, More!

As developers, we know how important it is to sharpen our tools and continually add new ones to our workflow. The command line is one of the best tools you can master as a developer. With this article, we are just scratching the surface of what we can do with the command line. Check out Command Line Power User32 for all 11 free videos about getting comfortable with the command line.

(al)

Footnotes

  1. 1 http://commandlinepoweruser.com/
  2. 2 https://www.iterm2.com/
  3. 3 https://www.iterm2.com/features.html
  4. 4 http://gooseberrycreative.com/cmder/
  5. 5 https://www.cygwin.com/
  6. 6 https://github.com/haithembelhaj/oh-my-cygwin
  7. 7 http://ohmyz.sh/
  8. 8 http://www.smashingmagazine.com/wp-content/uploads/2015/07/01-cobald2-opt.png
  9. 9 http://www.smashingmagazine.com/wp-content/uploads/2015/07/01-cobald2-opt.png
  10. 10 https://github.com/robbyrussell/oh-my-zsh/wiki/themes
  11. 11 http://www.smashingmagazine.com/wp-content/uploads/2015/07/02-agnoster-opt.png
  12. 12 https://github.com/robbyrussell/oh-my-zsh/wiki/themes#agnoster
  13. 13 http://www.smashingmagazine.com/wp-content/uploads/2015/07/02-agnoster-opt.png
  14. 14 http://www.smashingmagazine.com/wp-content/uploads/2015/07/03-cobalt2-opt.png
  15. 15 https://github.com/wesbos/Cobalt2-iterm
  16. 16 http://www.smashingmagazine.com/wp-content/uploads/2015/07/03-cobalt2-opt.png
  17. 17 http://www.smashingmagazine.com/wp-content/uploads/2015/07/04-bira-opt.png
  18. 18 https://github.com/robbyrussell/oh-my-zsh/wiki/themes#bira
  19. 19 http://www.smashingmagazine.com/wp-content/uploads/2015/07/04-bira-opt.png
  20. 20 https://github.com/powerline/fonts
  21. 21 http://www.smashingmagazine.com/wp-content/uploads/2015/07/05-bira-opt.png
  22. 22 http://www.smashingmagazine.com/wp-content/uploads/2015/07/05-bira-opt.png
  23. 23 http://www.smashingmagazine.com/wp-content/uploads/2015/07/06-schemes-opt.png
  24. 24 http://www.smashingmagazine.com/wp-content/uploads/2015/07/06-schemes-opt.png
  25. 25 https://github.com/wesbos/Cobalt2-iterm
  26. 26 https://github.com/search?q=iterm+extension%3Aitermcolors&ref=searchresults&type=Repositories&utf8=%E2%9C%93
  27. 27 https://github.com/baskerville/iTerm-2-Color-Themes
  28. 28 https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins#osx
  29. 29 https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins
  30. 30 https://github.com/rupa/z/blob/master/z.sh
  31. 31 https://github.com/rupa/z
  32. 32 http://CommandLinePowerUser.com

The post Become A Command-Line Power User With Oh-My-ZSH And Z appeared first on Smashing Magazine.

Link – 

Become A Command-Line Power User With Oh-My-ZSH And Z

Optimizing The Design Workflow With Fireworks Extensions, Part 2

In my previous article on Smashing Magazine, I discussed seven excellent extensions that could fundamentally change your Web design workflow in Adobe Fireworks. The extensions expand Fireworks’ capabilities by adding valuable functionality that could make a huge impact on your overall productivity as a designer.
I have to admit, though, that at the time, I was able only to scratch the surface of what’s possible with Fireworks, so I’d like to add to the list six more extensions.

View original post here: 

Optimizing The Design Workflow With Fireworks Extensions, Part 2

How To Create A Water Lily In Illustrator

Water lilies are beautiful flowers and ideal tutorial material. To get to our result, we’ll be doing a lot of clever actions, mostly rotating and duplicating, and we’ll have a lot of room for experimentation as well. For instance, we can try out different ways to build the layers of petals, and we can play with different shades of pink gradients.
This tutorial shows the basic steps I followed; but in creating this flower, I did way more than what is presented here.

View the original here – 

How To Create A Water Lily In Illustrator

A Web Developer’s Guide To Adobe InDesign

Over the past several years, there has been a big divide between designers: those who work in print distribution and those in digital distribution. The irony is that, despite the disputes, name-calling and flat-out arguments between the two camps, their techniques and methods are far more common than many believe. Both sides of this communications field are heavily influenced by each other. Grid systems and typography now play a strong role in Web-based design, and usability and user experience play a big part in developing print material.

Continue reading: 

A Web Developer’s Guide To Adobe InDesign

InDesign Tips I Wish I’d Known When Starting Out

I love Adobe InDesign. For multi-page documents, it’s the most flexible and complete application out there. Yet I remember how counter-intuitive some things were when I was learning it for the first time. Here are some tips I wish I had known when starting out, as well as some answers to questions that others often ask me.
This is not intended to be a manual; some good ones are already out there (although I personally learned by doing).

Read article here – 

InDesign Tips I Wish I’d Known When Starting Out

10 Useful Typography Tips For Adobe Illustrator

Typography is not only an all-important aspect of design, it is also an art form in and of itself. Choosing the right font, the perfect spacing and even the correct shape of text can be an important factor as to whether a project fails or succeeds. Although Illustrator is not really used for multiple-paged projects, many would agree that it is one of the most powerful applications for creating vector graphics, such as logos, and it is also often used for one-page documents, such as business cards, posters, or postcards.

Read article here: 

10 Useful Typography Tips For Adobe Illustrator

What To Do When Your Website Goes Down

Have you ever heard a colleague answer the phone like this: “Good afterno… Yes… What? Completely?… When did it go down?… Really, that long?… We’ll look into it right away… Yes, I understand… Of course… Okay, speak to you soon… Bye.” The call may have been followed by some cheesy ’80s rock ballad coming from the speaker phone, interrupted by “Thank you for holding. You are now caller number 126 in the queue.

Visit site – 

What To Do When Your Website Goes Down

Photoshop Secrets: Unknown Tricks and Time-Savers

We all have shortcuts that are essential to our daily workflow. A majority of them are staples such as Copy (Command + C) and Paste (Command + V), but occasionally we stumble upon a shortcut we wish we’d learned years ago. Suddenly, this simple shortcut has streamlined our process and shaved quite a bit of time off our day.
Collected here are some lesser known but extremely useful shortcuts. Many of these are not documented in the “Keyboard Shortcuts” menu, and some of them don’t even have equivalent menu options.

More here – 

Photoshop Secrets: Unknown Tricks and Time-Savers