When correcting colors in Photoshop, here’s a quick and simple way make improvements.
- Drag the level markers to the opposite ends of the Levels spectrum
- Apply lighter or darker curves, if necessary.
Here are some Chrome browser extensions that are really useful for web developers:
Here are the best SVN and Git clients I’ve found for Windows.
SVN
Git
When updating a website, you may sometimes notice that your changes don’t go into effect when you refresh your screen (F5). You also will want to test your site to see how they look with Javacript turned off.
To refresh your page, you can hit F5, but you may not see any changes since content may come from your local cache.
To force your page to be reloaded from the server regardless of your local cache, use Shift + F5.
To turn on/off javacript / local cache in Chrome, see the image below.
I recently needed to inspect some Javascript variables / values that were affecting a web page. I was using a 3rd party library (jQuery Tools Scrollable with Navigator plugin). Here’s one way to find out what properties (variables and functions) an object has and how to view them in your browser’s inspector.
Here’s a good website downloader:
And here’s a good audio, video, image downloader
As well all know by now, IE (Internet Explorer) is a problematic browser for all web developers. There will come a time when everything just looks great everywhere else (Chrome, Safari, Firefox) but NOT in IE. If you can’t make your CSS, Javascript to work in all browsers including IE, you can add a separate CSS and Javascript file that works only in IE using the following code:
<!–[if IE]>
<link rel=”stylesheet” type=”text/css” href=”/asset/stylesheet/ie.css” />
<![endif]–>
<!–[if IE]>
<script src=”//html5shiv.googlecode.com/svn/trunk/html5.js”></script>
<![endif]–>
Sublime Text 2
Notepad++
The || operator is used for setting default values.
var name = persons_name || "John Doe";
This code is the same as
if (persons_name) { var name = persons_name; } else { var name = "John Doe"; }
var name = person && person.getName();
This code is the same as
if (person) { var name = person.getName(); }
I’ve been using Sublime Text 2 for a few months now and it’s by far the best code editor I’ve ever used. BUT, surprisingly it doesn’t even come with a code auto-formatter. There are some plugins but some don’t work and others required additional dependencies. So, here’s a web-based formatter called Dirty Markup that can clean up your HTML, CSS, Javascript very quickly and easily.