<pre class="brush: js; ruler: true; first-line: 10; highlight: [2, 4, 6]">
YOUR CODE HERE
</pre>
If you try and publish any code with < or > in it, you'll need to HTML Encode the code before adding it to the blog post. You can search HTML encode via google or use this link. You can check on both of the options to make it more readable.
only encode unsafe and non-ASCII characters
allow named character references in output (incompatible with older browsers)
In the standard document classes report and book, figure and table counters are reset after every chapter. On the other hand, article does not reset these counters when a new section is started. The chngcntr package provides the \counterwithin and \counterwithout commands to redefine a counter, by adding or removing a dependency. Through these commands, the behavior of the figure and table counters can be changed.
Continuous figure and table numbering in report/book
The \counterwithout command removes a dependency from a counter and redefines \the’counter’ such that it is printed without the dependency.
Through \counterwithout, the figure and table counters can be changed to continuously number these figures and tables throughout a report or book. The command also redefines the way the counter is printed, such that the chapter number is not shown (e.g. ‘Figure 3’ instead of ‘Figure 1.3′). Redefining \the’counter’ can be omitted through the starred version \counterwithout*.
There are many applications on your Mac that don't need a Dock icon. Having a Dock icon for applications that are accessed through a menu bar item or constantly run in the background would just waste space and clutter up your Dock. Many applications like this automatically hide their Dock icon (Google Notifier, Quicksilver) however some don't (Launchbar, HardwareGrowler).
Luckily, if it is a cocoa application, you can hide the Dock icon yourself. To see if it is possible, right-click (Control-click) on the application icon. If "Show Package Contents" is in the menu that appears, you can hide the icon in the Dock.
If this is the case, select "Show Package Contents" and look for the "Info.plist" file inside the Contents folder. Open this file using TextEdit by right-clicking on it and choosing "Open With - Other" from the menu.
In the file, paste the following two lines just after <dict> on the 6th line:
<key>LSUIElement</key>
<string>1</string>
Save the file and close it. For the changes to take effect, you need to move the application to the desktop and them back to its original location (OS X keeps a cache of the file, so you need to trick it into checking it again).
Now when you open the application, no icon will appear in the Dock. I wouldn't recommend doing this with your regular applications like iTunes and Safari as this also has the side-effect of disabling the menu bar. This means that you will have to quit the application using the keyboard shortcut Command-Q. If the application doesn't have any windows, you will have to quit it from Activity Monitor (in Applications/Utilities).
To bring back the Dock icon, simply open up the Info.plist file and remove the lines you added.
If you are too lazy to do this yourself, FoggyNoggin Software has created an application called Dock Dodger that automates the process.
Before Lion it was possible to run an external display off a laptop and
have the internal display disabled, even if you opened the lid. This can
be useful for a myriad of reason including energy saving and better
wifi reception. With Lion the internal display will always turn on when
the lid is opened, even if there is already an external display
connected.