Tag Archives: display

Boot argument options in OS X

OS X and terminal

This reverses the “Clamshell” mode for Apple’s laptop systems, where when you close the display but connect the system to an external monitor and keyboard the system will stay awake. After running this command, when connecting an external monitor, the internal display will be disabled, which can be beneficial in some situations such as those where you are mirroring your desktop but wish to run the external display at a higher resolution than your laptop can run.
To disable these features and have the system boot normally without any extra options, you can erase them from the nvram by either resetting it or, more specifically, by running either of the following commands in the Terminal (these will reset the boot arguments instead of resetting all the nvram variables):

For further reading, check out Boot argument options in OS X from CNet to see all options you could operate on NVRAM.

How to post source code on WordPress

IF YOU ARE ON WORDPRESS.COM:
The trick is to use the WordPress
[ sourcecode] tag, as documented at http://en.support.wordpress.com/code/posting-source-code/

Note: You have to enclose the [ sourcecode] shortcut tag in square – not pointy – brackets.
Here is a snippets of C code.

The default for wraplines is true, which causes long lines to be wrapped. That isn’t appropriate for Python, so specify Continue reading