A few weeks ago, on December 22, 2011 actually, I released a new filter for adding Perl support to Doxygen. This filter supports Doxygen style comments, POD style comments, and can perform some basic analysis of a Perl module and is called Doxygen::Filter::Perl. You can download this filter from CPAN or from Sourceforge at: http://perldoxygen.sourceforge.net/. For windows users or first time Doxygen users, please see the discussion thread on the Sourceforge project page. For those familiar with Doxygen, the documentation on CPAN should suffice.
Somewhere between order, disorder, and chaos exists the life in which we live. My views of time and space and everything else therein reflects my never ending war with Entropy.
Sunday, January 8, 2012
Tuesday, December 6, 2011
How do I su to root on OSX
So you are tired of typing sudo before ever command and you would like root shell running bash. In OSX like Ubuntu the password for root is locked and you can not “su” or “sux” to root. The way you get around this is to first “sudo bash” to get a root bash shell and then “passwd” to set the root password. Make sure you set a really strong password for root if you are going to go this route. And if you allow inbound SSH, you should probably change the sshd_config to not allow root to SSH in. Make users SSH as a non-privileged user first and then su to root.
Once you have this done you will probably want to set the shell that root uses by default. Unfortunately you can not just edit /etc/passwd like in Linux. OSX uses OpenDirectory to store all of this. What I had to do is reboot/logout and then log back in as root. You can then use the actual GUI tools (System Preferences -> Users and Groups -> Control-Click the root user in the list and select advanced options) to change the shell for the root user.
Monday, December 5, 2011
Taking a screen shot with Mac OSX
With OSX Lion, screens shots can be done a few ways:
Take screen shot of complete desktop and save to desktop
Take screen shot of a specific window or selection. With this option, if you press space after the key combo below instead of dragging your mouse while pressing the mouse button, it will select the entire window/object that the mouse is currently over. After selecting the entire window with the space bar, you will still need to press the mouse button/left mouse button to take the picture.
Take screen shot of complete desktop and save to desktop
- Command-Shift-3: Save to desktop
- Command-Control-Shift-3: Save to clipboard
Take screen shot of a specific window or selection. With this option, if you press space after the key combo below instead of dragging your mouse while pressing the mouse button, it will select the entire window/object that the mouse is currently over. After selecting the entire window with the space bar, you will still need to press the mouse button/left mouse button to take the picture.
- Command-Shift-4: Save to desktop
- Command-Control-Shift-4: Save to clipboard
Subscribe to:
Posts (Atom)