{"id":227,"date":"2005-09-08T18:20:23","date_gmt":"2005-09-09T02:20:23","guid":{"rendered":"http:\/\/www.wiredatom.com\/blog\/?page_id=227"},"modified":"2013-03-09T13:27:03","modified_gmt":"2013-03-09T21:27:03","slug":"note-to-self","status":"publish","type":"page","link":"https:\/\/www.wiredatom.com\/blog\/note-to-self\/","title":{"rendered":"Note to Self"},"content":{"rendered":"<p><strong>MS Office Notes<\/strong><br \/>\nExcel: To enter line breaks within a cell<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">option + ctrl + return<\/div><\/div>\n<\/blockquote>\n<p>Excel: To edit a cell inline without leaving the keyboard<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">ctrl + u<\/div><\/div>\n<\/blockquote>\n<p>Excel: To combine text from two different cells in one<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">=cell1&amp; &quot; &quot; &amp;cell2<\/div><\/div>\n<p>produces<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">cell1 cell2<\/div><\/div>\n<p>The key is in using the <span style=\"color: blue;\">&#038;<\/span> sign at the end of the reference to first cell and the beginning of the reference to the second cell.\n<\/p><\/blockquote>\n<p><\/p>\n<div class=\"divider\">&nbsp;<\/div>\n<p><strong>Mac OSX Notes<\/strong><br \/>\nHow to screen capture on your Mac<\/p>\n<blockquote><p>whole screen (makes 2 pictures for dual screen)<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">command + shift + 3<\/div><\/div>\n<p>free hand<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">command + shift + 4<\/div><\/div>\n<p>active window<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">command + shift + 4 + space bar<\/div><\/div>\n<p>In OSX.3 (Panther), all screen capture files are saved as .tiff files.<br \/>\nIn OSX.4 (Tiger), all screen capture files are saved as .png files.\n<\/p><\/blockquote>\n<p>How to zoom in &#038; out of Mac OSX screen (must turn on <strong>Accessibility<\/strong> feature in <strong>Preferences<\/strong> pane)<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">command + option + 8<\/div><\/div>\n<p>(&#8220;Apple, Option, Eight&#8221;) toggles Zoom on\/off<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">command + option + =<\/div><\/div>\n<p>(&#8220;Apple, Option, Equal Sign&#8221;) zooms in, centering on the cursor position when Zoom is on<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">command + option + -<\/div><\/div>\n<p>(&#8220;Apple, Option, Minus Sign&#8221; ) zooms out\n<\/p><\/blockquote>\n<p>Negative Effect (must turn on <strong>Accessibility<\/strong> feature in <strong>Preferences<\/strong> pane)<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">command + option + ctl + 8<\/div><\/div>\n<p>(&#8220;Apple, Option, Ctl, Eight&#8221; ) toggles the effect on\/off\n<\/p><\/blockquote>\n<p>Hide HardwareGrowler from Dock<\/p>\n<blockquote><p>\n1. Right click on application -> <code class=\"codecolorer text default\"><span class=\"text\">Show Package Contents<\/span><\/code><br \/>\n2. Edit <code class=\"codecolorer text default\"><span class=\"text\">Info.plist<\/span><\/code> in a text editor<br \/>\n3. Add the following<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">&lt;key&gt;LSUIElement&lt;\/key&gt;<br \/>\n&lt;string&gt;1&lt;\/string&gt;<\/div><\/div>\n<p>4. In command line, type:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">touch ~\/path\/to\/HardwareGrowler.app<\/div><\/div>\n<p>5. Relaunch application\n<\/p><\/blockquote>\n<p>Reset menu bar on Leopard Mac OS X<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">killall -HUP SystemUIServer<\/div><\/div>\n<p>If SystemUIServer is not running, open terminal and run<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">\/System\/Library\/CoreServices\/SystemUIServer.app<\/div><\/div>\n<\/blockquote>\n<p>Force bigger fonts on all incoming messages in Mail.app<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">defaults write com.apple.mail MinimumHTMLFontSize 13<\/div><\/div>\n<\/blockquote>\n<p>Restart Cisco VPN daemon<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">sudo \/System\/Library\/StartupItems\/CiscoVPN\/CiscoVPN restart<\/div><\/div>\n<\/blockquote>\n<p>Restart the Mac OSX native VPN client<\/p>\n<blockquote><p>\nFirst see if the VPN client is already running:<\/p>\n<p>If it is, something like this will show up:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">root &nbsp; &nbsp; 36936 &nbsp; 0.0 &nbsp;0.0 &nbsp;2435636 &nbsp; 2040 &nbsp; ?? &nbsp;Ss &nbsp; &nbsp;2:17PM &nbsp; 0:00.57 \/usr\/sbin\/racoon -x<\/div><\/div>\n<p>Kill it:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">sudo killall racoon<\/div><\/div>\n<p>or<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">sudo kill -9 &lt;em&gt;process id&lt;\/em&gt;<\/div><\/div>\n<p>example using the grep result from above:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">sudo -9 36936<\/div><\/div>\n<p>Start it up again:<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">sudo \/usr\/sbin\/racoon<\/div><\/div>\n<\/blockquote>\n<p><\/p>\n<div class=\"divider\">&nbsp;<\/div>\n<p><strong>Free BSD Notes<\/strong><br \/>\nPost-install configuration interface: <\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">\/usr\/sbin\/sysinstall<\/div><\/div>\n<\/blockquote>\n<p>updatedb in FreeBSD is:<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">\/usr\/libexec\/locate.updatedb<\/div><\/div>\n<p>Doh! It&#8217;s the same command in Mac OSX! (Duh&#8230; )<\/p><\/blockquote>\n<p>command to upgrade FreeBSD packages:<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">portupgrade package_name<\/div><\/div>\n<\/blockquote>\n<p>Package management:<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">pkg_add (_check, _create, _delete, _info, _version) package_name<\/div><\/div>\n<p>The command adds package from FreeBSD ports (kind of like <code class=\"codecolorer text default\"><span class=\"text\">apt-get<\/span><\/code> for Debian or<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">emerge<\/div><\/div>\n<p>for Gentoo)<\/p><\/blockquote>\n<p>To change the default startx to gnome:<\/p>\n<blockquote><p>\n1. Locate (or create) <code class=\"codecolorer text default\"><span class=\"text\">~\/.xinitrc<\/span><\/code><br \/>\n2. Add <code class=\"codecolorer text default\"><span class=\"text\">exec genome-session<\/span><\/code> to the file<br \/>\n3.Save &#038; exit<br \/>\n4. Logout and Login again<\/p><\/blockquote>\n<p><\/p>\n<div class=\"divider\">&nbsp;<\/div>\n<p><strong>Debian Notes<\/strong><br \/>\nProFTPD: Local users without shell accounts cannot login<\/p>\n<blockquote><p>\nIssue <code class=\"codecolorer text default\"><span class=\"text\">\/bin\/false<\/span><\/code> in <code class=\"codecolorer text default\"><span class=\"text\">\/etc\/shells<\/span><\/code> file\n<\/p><\/blockquote>\n<p>ProFTPD: After the above is issued, local users cannot list directories<\/p>\n<blockquote><p>\nIf iptables is being used:<br \/>\nAs root, issue <code class=\"codecolorer text default\"><span class=\"text\">insmod ip_conntrack_ftp<\/span><\/code>\n<\/p><\/blockquote>\n<p>To restart the IMAP server after a server reboot:<\/p>\n<blockquote>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"text codecolorer\">sudo \/etc\/init.d\/dovecot restart<\/div><\/div>\n<\/blockquote>\n<p>To change apache log permissions while rotating logs:<\/p>\n<blockquote><p>\n<code class=\"codecolorer text default\"><span class=\"text\">\/etc\/logrotate.d\/apache<\/span><\/code> (or whatever the log rotation script is called)<br \/>\nModify the <code class=\"codecolorer text default\"><span class=\"text\">create 640 root adm<\/span><\/code> line accordingly\n<\/p><\/blockquote>\n<p>To exit out of Text mode in Adobe Photoshop<\/p>\n<blockquote><p>\nWhile still in Text mode, press and hold <code class=\"codecolorer text default\"><span class=\"text\">Command<\/span><\/code> key while pressing the <code class=\"codecolorer text default\"><span class=\"text\">return<\/span><\/code> key\n<\/p><\/blockquote>\n<p><\/p>\n<div class=\"divider\">&nbsp;<\/div>\n<p><strong>Cool &#8220;<a href=\"http:\/\/en.wikipedia.org\/wiki\/GNU_Screen\">screen<\/a>&#8221; Tips<\/strong><br \/>\nhttp:\/\/www.bangmoney.org\/presentations\/screen.html<br \/>\nhttp:\/\/www.darkcoding.net\/strategy\/gnu-screen-basics-quick-reference\/<\/p>\n<p><\/p>\n<div class=\"divider\">&nbsp;<\/div>\n<p><strong>Geeky Quotes:<\/strong><\/p>\n<blockquote><p>To err is human&#8230; to really foul up requires the root password.<\/p><\/blockquote>\n<p><\/p>\n<blockquote><p>Unix is user-friendly. It&#8217;s just very selective about who its friends are.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>MS Office Notes Excel: To enter line breaks within a cell option + ctrl + return Excel: To edit a cell inline without leaving the keyboard ctrl + u Excel: To combine text from two different cells in one =cell1&amp; &quot; &quot; &amp;cell2 produces cell1 cell2 The key is in using the &#038; sign at &hellip; <a href=\"https:\/\/www.wiredatom.com\/blog\/note-to-self\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Note to Self&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-227","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P54IqZ-3F","_links":{"self":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/pages\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":1,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/pages\/227\/revisions"}],"predecessor-version":[{"id":981,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/pages\/227\/revisions\/981"}],"wp:attachment":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/media?parent=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}