tag:blogger.com,1999:blog-11957947882579145332024-02-02T05:07:55.135-05:00Todd's notesquestions, answers, stuff that happenstoddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.comBlogger60125tag:blogger.com,1999:blog-1195794788257914533.post-89817813597147548072017-04-20T13:59:00.003-04:002017-04-20T13:59:36.695-04:00logrotate -- Use YYYYMMDD (ISO 8601) format and the name won't change<div dir="ltr" style="text-align: left;" trbidi="on">
Quick, which file contains records from 18 April 2017 ?<br />
<div class="p1">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"><b>sysl</b></span><span class="s2">og</span></div>
<div class="p3">
<span class="s3"><b>sysl</b></span><span class="s1">og.1</span></div>
<div class="p3">
<span class="s3"><b>sysl</b></span><span class="s1">og.2.gz</span></div>
<div class="p3">
<span class="s3"><b>sysl</b></span><span class="s1">og.3.gz</span></div>
<div class="p3">
<span class="s3"><b>sysl</b></span><span class="s1">og.4.gz</span></div>
<div class="p3">
<span class="s3"><b>sysl</b></span><span class="s1">og.5.gz</span></div>
or how about here?:<br />
<div class="p1">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"><b>sysl</b></span><span class="s2">og</span></div>
<div class="p3">
<span class="s3"><b>sysl</b></span><span class="s1">og-20170417.gz</span></div>
<div class="p3">
<span class="s3"><b>sysl</b></span><span class="s1">og-20170418.gz</span></div>
<div class="p3">
<span class="s3"><b>sysl</b></span><span class="s1">og-20170419.gz</span></div>
<div class="p3">
<span class="s3"><b>sysl</b></span><span class="s1">og-20170420</span></div>
<div class="p3">
<br /></div>
With the first set, it depends on today's date, because rotating the logs means 3 -> 4, 2 -> 3, 1 -> 2, and the most recent -> .1, and whatever answer you came up with today will be different next week.<br />
<br />
And if you archive or back up your log files, either you need to rename or they will be overwriting each other.<br />
<br />
Logrotate already has a feature for this called 'dateext'; just add this to /etc/logrotate.conf :<br />
<div class="p1">
<span class="s1"></span><br /></div>
<div class="p2">
<span class="s1"><b>diff --git a/logrotate.conf b/logrotate.conf</b></span></div>
<div class="p2">
<span class="s1"><b>index 436713d..436f10d 100644</b></span></div>
<div class="p2">
<span class="s1"><b>--- a/logrotate.conf</b></span></div>
<div class="p2">
<span class="s1"><b>+++ b/logrotate.conf</b></span></div>
<div class="p3">
<span class="s1">@@ -1,13 +1,14 @@</span></div>
<div class="p4">
<span class="s1"> # see "man logrotate" for details</span></div>
<div class="p4">
<span class="s1"> # rotate log files weekly</span></div>
<div class="p4">
<span class="s1"> weekly</span></div>
<div class="p5">
<span class="s1">+dateext</span></div>
<br />
to make it take effect globally. You can also do it on a per- log-file type basis.<br />See man logrotate for more details.<br />
<br />
Do this on every new system and you won't have this problem in the future<br />(that's why I wrote this post, so I don't forget).<br />
<br />
This will take effect at next rotation time. Existing files will not be affected, so you'll have to take care of those yourself.<br />
<br />
Why YYYYMMDD format?<br />
This is the right thing, it's the standard; it's an <b>International Standard</b>. <br />
You don't have to worry about which side of the ocean you're on to figure out when 04/05/2017 refers to.<br />Dates in this format also naturally sort; ever see a bunch of file or folder names like 31jan17, 01feb17 15apr17, and have to sort them for processing ? With a YYYYMMDD format that problem goes away. It's unambiguous.<br />
<br />
<img src="https://imgs.xkcd.com/comics/iso_8601.png" style="-webkit-user-select: none; background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee 100%),linear-gradient(45deg, #eee 25%, white 25%, white 75%, #eee 75%, #eee 100%); background-position: 0px 0px, 10px 10px; background-size: 20px 20px;" /><br />
<br />
More here: <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601 - Wikipedia</a><br />
<br />
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #e9bafe; background-color: #000000; min-height: 15.0px}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #ff3b1d; background-color: #000000}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #e9bafe; background-color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #e9bafe}
span.s3 {font-variant-ligatures: no-common-ligatures; color: #ff3b1d}
</style><style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #e9bafe; background-color: #000000; min-height: 15.0px}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #ff3b1d; background-color: #000000}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #e9bafe; background-color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #e9bafe}
span.s3 {font-variant-ligatures: no-common-ligatures; color: #ff3b1d}
</style><style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #e9bafe; background-color: #000000; min-height: 15.0px}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #fff28c; background-color: #000000}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #34bbc7; background-color: #000000}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #e9bafe; background-color: #000000}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #34bd26; background-color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style></div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-80605864491071775592016-05-11T15:10:00.001-04:002016-05-11T15:10:37.485-04:00FiOS Actiontec MI424WR-GEN3I router<div dir="ltr" style="text-align: left;" trbidi="on">
Just recording a datapoint on what my current version is:<br />
<br />
<table border="0" cellpadding="4" cellspacing="0" style="font-family: Verdana, Helvetica, Arial, sans-serif; width: 80%px;"><tbody>
<tr bgcolor="#E0E5F1"><td align="LEFT" class="GRID_NO_RIGHT" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-left-color: rgb(255, 255, 255); border-left-style: solid; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-width: 1px 0px 1px 1px; font-size: 11px;" valign="MIDDLE" width="50%"><b>Firmware Version</b>:</td><td align="LEFT" class="GRID_NO_LEFT" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-width: 1px 1px 1px 0px; font-size: 11px;" valign="MIDDLE" width="50%">40.21.18</td></tr>
<tr bgcolor="#F1F3F9"><td align="LEFT" class="GRID_NO_RIGHT" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-left-color: rgb(255, 255, 255); border-left-style: solid; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-width: 1px 0px 1px 1px; font-size: 11px;" valign="MIDDLE" width="50%"><b>Model Name</b>:</td><td align="LEFT" class="GRID_NO_LEFT" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-width: 1px 1px 1px 0px; font-size: 11px;" valign="MIDDLE" width="50%">MI424WR-GEN3I</td></tr>
<tr bgcolor="#E0E5F1"><td align="LEFT" class="GRID_NO_RIGHT" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-left-color: rgb(255, 255, 255); border-left-style: solid; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-width: 1px 0px 1px 1px; font-size: 11px;" valign="MIDDLE" width="50%"><b>Hardware Version</b>:</td><td align="LEFT" class="GRID_NO_LEFT" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-width: 1px 1px 1px 0px; font-size: 11px;" valign="MIDDLE" width="50%">I</td></tr>
<tr bgcolor="#F1F3F9"><td align="LEFT" class="GRID_NO_RIGHT" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-left-color: rgb(255, 255, 255); border-left-style: solid; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-width: 1px 0px 1px 1px; font-size: 11px;" valign="MIDDLE" width="50%"><b>Serial Number</b>:</td><td align="LEFT" class="GRID_NO_LEFT" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-width: 1px 1px 1px 0px; font-size: 11px;" valign="MIDDLE" width="50%">CSXI3430506051</td></tr>
<tr bgcolor="#E0E5F1"><td align="LEFT" class="GRID_NO_RIGHT" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-left-color: rgb(255, 255, 255); border-left-style: solid; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-width: 1px 0px 1px 1px; font-size: 11px;" valign="MIDDLE" width="50%"><b>Physical Connection Type</b>:</td><td align="LEFT" class="GRID_NO_LEFT" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-width: 1px 1px 1px 0px; font-size: 11px;" valign="MIDDLE" width="50%">Coax</td></tr>
<tr bgcolor="#F1F3F9"><td align="LEFT" class="GRID_NO_RIGHT" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-left-color: rgb(255, 255, 255); border-left-style: solid; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-width: 1px 0px 1px 1px; font-size: 11px;" valign="MIDDLE" width="50%"><b>Broadband Connection Type</b>:</td></tr>
</tbody></table>
<br />
Still seeing these messages hourly:<br />
<br />
May 10 18:02:21 2016<span class="Apple-tab-span" style="white-space: pre;"> </span>System Log<span class="Apple-tab-span" style="white-space: pre;"> </span>CWMP<span class="Apple-tab-span" style="white-space: pre;"> </span>Periodic Inform 204 No Content<br />
May 10 18:02:17 2016<span class="Apple-tab-span" style="white-space: pre;"> </span>System Log<span class="Apple-tab-span" style="white-space: pre;"> </span>CWMP<span class="Apple-tab-span" style="white-space: pre;"> </span>Periodic Inform challenge response with 200 OK from server<br />
May 10 18:02:16 2016<span class="Apple-tab-span" style="white-space: pre;"> </span>System Log<span class="Apple-tab-span" style="white-space: pre;"> </span>CWMP<span class="Apple-tab-span" style="white-space: pre;"> </span>Periodic Inform initial 401 challenge<br />
May 9 18:02:21 2016<span class="Apple-tab-span" style="white-space: pre;"> </span>System Log<span class="Apple-tab-span" style="white-space: pre;"> </span>CWMP<span class="Apple-tab-span" style="white-space: pre;"> </span>Periodic Inform 204 No Content<br />
May 9 18:02:17 2016<span class="Apple-tab-span" style="white-space: pre;"> </span>System Log<span class="Apple-tab-span" style="white-space: pre;"> </span>CWMP<span class="Apple-tab-span" style="white-space: pre;"> </span>Periodic Inform challenge response with 200 OK from server<br />
May 9 18:02:16 2016<span class="Apple-tab-span" style="white-space: pre;"> </span>System Log<span class="Apple-tab-span" style="white-space: pre;"> </span>CWMP<span class="Apple-tab-span" style="white-space: pre;"> </span>Periodic Inform initial 401 challenge<br />
May 8 18:02:22 2016<span class="Apple-tab-span" style="white-space: pre;"> </span>System Log<span class="Apple-tab-span" style="white-space: pre;"> </span>CWMP<span class="Apple-tab-span" style="white-space: pre;"> </span>Periodic Inform 204 No Content<br />
May 8 18:02:18 2016<span class="Apple-tab-span" style="white-space: pre;"> </span>System Log<span class="Apple-tab-span" style="white-space: pre;"> </span>CWMP<span class="Apple-tab-span" style="white-space: pre;"> </span>Periodic Inform challenge response with 200 OK from server<br />
May 8 18:02:16 2016<span class="Apple-tab-span" style="white-space: pre;"> </span>System Log<span class="Apple-tab-span" style="white-space: pre;"> </span>CWMP<span class="Apple-tab-span" style="white-space: pre;"> </span>Periodic Inform initial 401 challenge<br />
<div>
<br /></div>
<div>
This is apparently "<span style="background-color: white; font-family: verdana, sans-serif; font-size: x-small;"><span class="goog-text-highlight" style="background-color: #c9d7f1; box-shadow: rgb(153, 153, 170) 2px 2px 4px; box-sizing: border-box; position: relative;"> </span></span><i style="background-color: white; font-family: verdana, sans-serif; font-size: small;"><a href="http://pt.encydia.com/es/Customer_Premises_Equipment" style="color: #663366;"><span class="goog-text-highlight" style="background-color: #c9d7f1; box-shadow: rgb(153, 153, 170) 2px 2px 4px; box-sizing: border-box; position: relative;">CPE </span></a><a href="http://pt.encydia.com/es/WAN_e4c5" style="color: #663366;"><span class="goog-text-highlight" style="background-color: #c9d7f1; box-shadow: rgb(153, 153, 170) 2px 2px 4px; box-sizing: border-box; position: relative;">WAN</span></a><span class="goog-text-highlight" style="background-color: #c9d7f1; box-shadow: rgb(153, 153, 170) 2px 2px 4px; box-sizing: border-box; position: relative;"> Management Protocol</span></i><span style="background-color: white; font-family: verdana, sans-serif; font-size: x-small;"><span class="goog-text-highlight" style="background-color: #c9d7f1; box-shadow: rgb(153, 153, 170) 2px 2px 4px; box-sizing: border-box; position: relative;"> (CWMP)</span></span>", part of the TR-069 standard; the spec is 200+ pages.</div>
<div>
<br /></div>
<div>
There are a number of Open Source implementations, the github repo at</div>
<div>
<a href="https://github.com/pivasoftware/easycwmp">pivasoftware/easycwmp: EasyCwmp</a> </div>
<div>
(website: <a href="http://www.easycwmp.org/">EasyCwmp - TR069 cwmp client open source - About</a> )</div>
<div>
seems to be the most active.</div>
<div>
<br /></div>
<div>
Something you could install on your OpenWRT router.</div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com1tag:blogger.com,1999:blog-1195794788257914533.post-19416261636237472992015-03-11T14:21:00.000-04:002015-03-11T14:21:01.565-04:00OSX / Mac Screen Capture Tricks<div dir="ltr" style="text-align: left;" trbidi="on">
Quick way to capture just a window: Cmd-shift-4<br />
you can drag out an rectangle,<br />
or press space bar (icon will change to camera)<br />
window below will change blue, click on it to get the whole window.<br />
Press 'esc' to cancel.<br />
<br />
Screen shot of entire screen: Cmd-shift-3<br />
if you have multiple monitors,<br />
a .png file for each.<br />
<br />
These create a .png file on your desktop.<br />
<br />
If you hold down ctrl, it is only copied to the clipboard. Then, you can paste it to preview (New from clipboard) or other graphics program.<br />
<br />
<div style="text-align: left;">
There is also a Grab utility (in /Applications/Utilities) included with OS X:<br />Cons: creates .tiff files only (not as convenient for me)(easily converted with Preview, just Save As.. and change the format)<br />Pros: timed capture allows you to get pulldowns, also mouse pointer can be included (see Preferences..)</div>
<br />
<br />
Some of these tricks from (orginal article no longer available):<br /><a href="https://web.archive.org/web/20130424092607/http://usingmac.com/2008/12/21/mac-screen-capture-tricks" target="_blank">Wayback machine: usingmac.com/2008/12/21/mac-screen-capture-tricks</a><br />
<br />
even more tricks here:<br />
<a href="http://www.tekrevue.com/tip/how-to-customize-screenshot-options-in-mac-os-x/" target="_blank">http://www.tekrevue.com/tip/how-to-customize-screenshot-options-in-mac-os-x/</a><br />
<br />
- change folder where files go<br />
- change format (for example, to jpg, gif, tif, etc)<br />
- remove drop shadow<br />
- change file name (so it's not "Screen Shot")<br />
<br />
Most of these start with<br />
<span style="font-family: Courier New, Courier, monospace;"><b style="background-color: #d0e0e3;">defaults write com.apple.screencapture </b></span><br />
<br />
be sure to do<br />
<span style="font-family: Courier New, Courier, monospace;"><b style="background-color: #d0e0e3;">killall SystemUIServer</b></span><br />
<div>
<br /></div>
<div>
for them to take effect.</div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-9376347147995634082014-11-09T13:33:00.003-05:002016-03-22T11:30:36.437-04:00Google Cloud Print -- getting offline printers back online (for Chromebook, or other devices)<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<i><b>Quick Fix</b></i>: scroll to <b>Solution </b>below.<br />
<br />
<b>What it is: </b> Google Cloud Print is a great way to share your printers with someone else; all you need is the Chrome browser.<br />
<br />
A friend needs to print something? <br />
They could send you the file, you could save it, open it and hope it looks the same, doesn't contain any malware, you have the same program and version, and then print it. Or they could install the necessary drivers, software, and then come over and configure a new printer.<br />
Or, you can just share the printer with them (like you do any google doc),<br />
and it will appear in their list of printers available to them (at least from Chrome).<br />
No additional software to install,<br />
no special configuration,<br />
just select that printer in the list of available printers.<br />
<br />
Visiting an office or campus, and don't have access to the network printers, don't have the drivers available, etc. ?<br />
Having someone share their printer via google cloud print is an easy way for you to print something there and not bother them every time. If you don't have a printer, or want to pay for some high-quality output, you can also print directly to a Fedex/kinkos office (and probably other commercial print services) ("Print to Fedex Office" is already available when you print from Chrome).<br />
<br />
You don't even have to be on the same network, so you can print on the printer at work while you're at home or on the road, or vice versa. Some newer printers come "Cloud print enabled", other (older dumb, or directly attached) printers will need to have a Chrome browser running on a computer that can print to that printer (and is shared with you). An old or cheap computer could be set up to run chrome and be the office "print server", saving everyone one else from having to all install the<br />
<br />
Sharing printers via google cloud print may be the only way to print from a Chromebook or Android (direct printing, not by emailing files or photos), because the printer may not support this device or have "drivers" available (stupid manufacturers should use common open protocols, not proprietary device-specific controls).<br />
<br />
<h2 style="text-align: left;">
Symptom:</h2>
<b>Occasionally, the printer goes offline.</b> After months of working fine, it stopped, and said "Printer offline for 10 days", even though it was on, and I had printed to it (minutes before) from the computer where I had shared it. "<a href="https://www.google.com/cloudprint/#printers" target="_blank"><span style="font-size: large;">Cloud Printers</span></a>"<br />
showed it as offline, but refreshing did not change the status.<!------><!------></div>
One thing that would <i>probably</i> work is removing, and then adding the printer again to Google Cloud Print (and then probably having to share it again with everyone). I was starting down this route, and the first step to adding a printer is to go to Chrome settings, find Google Cloud Print (fastest way is to just type "print" into the Search settings box), and then click the Manage button.<br />
<br />
<h2 style="text-align: left;">
<a href="https://www.blogger.com/null" name="gcp_solution">Solution:</a></h2>
<b>Just viewing the devices</b> listed in Google Cloud Print <b>brought the printer back online.</b><br />
In fact I heard the printer wake up and it commenced to printing the queued document.<br />
Here's a shortcut to that section in your settings: <br />
<span style="font-size: small;"><input length="18" name="sample" value="chrome://devices/" /> -- </span>you'll need to copy and paste it manually (browser security reasons),<br />
or search in settings for "printers".<br />
<br />
Now, go the the "Cloud Printers" link above, or if you have the tab open already click refresh, and now it should be online.<br />
<br />
<br />
If you are using Windows and want to print from other programs, there is "Cloud Printer" software (available from Google).<br />
<br />
Why does the printer go offline? I don't know.<br />
Did this work for you?<br />
Let me know.<br />
<br />
<b><i>Update 2016-02-21</i></b>: <span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">This has been </span><span class="il" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">reported</span><span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"> as a bug at the link below. To vote for it to get fixed, please go to the link and click the star icon near the upper left corner of the webpage. You need to be signed into your </span><span class="il" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">Google</span><span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"> account to vote. </span><br />
<a href="https://bugs.chromium.org/p/chromium/issues/detail?id=588462" style="background-color: white; color: #1155cc; font-family: arial, sans-serif; font-size: 12.8px;" target="_blank">https://bugs.chromium.org/p/<wbr></wbr>chromium/issues/detail?id=<wbr></wbr>588462</a> <div class="separator" style="clear: both; text-align: center;">
<a href="http://tkr1.b23.com/i5/j0311.gif?tn.gcp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://tkr1.b23.com/i5/j0311.gif?tn.gcp" /></a></div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com44tag:blogger.com,1999:blog-1195794788257914533.post-29926582617214980442014-03-20T12:25:00.001-04:002015-03-11T13:22:18.923-04:00Shell history: Set HISTTIMEFORMAT to save & see when you executed commands<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="p1">
this is a really useful setting that I didn't know about until a couple years ago.</div>
<div class="p2">
<br /></div>
<div class="p2" style="text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><b>HISTTIMEFORMAT='%F %T '</b></span></div>
<div style="text-align: left;">
<br /></div>
<div class="p1">
So used to it now, I get annoyed when I create a new account/login and don't have it.</div>
<div class="p2">
<br /></div>
<div class="p1">
Why: ability to correlate system artifacts with commands.<br />
There's a file here, when/how did I create it?<br />
Now in the shell, 'history' will show the time of commands; which may help you track down when you created (or deleted) a file, etc.<br />
<br />
Some issues:<br />
<br />
<ul style="text-align: left;">
<li>if you start a new shell, and it ends after this one, $HISTFILE can get overwritten. <br />Problem if you like to have lots of shells & windows at the same time.</li>
<li>after a while, with a lot of history, only the last $HISTSIZE (or HISTFILESIZE) commands will be saved.</li>
<li>your $HISTFILE contains unix epoch times, so not easily read or grep'd directly.<br />(However, you can easily save and load with history -w / -r )</li>
<li>recorded time is not retroactive. All previous commands prior will have the time when you first set HISTTIMEFORMAT, <b>so start today</b>!</li>
</ul>
<div>
I have solutions to most of these, so each of my screen windows have their own history, also emacs, xterm shells, and a per-directory history as well.</div>
<div>
How many commands? <span style="font-size: large;">121859</span> (just one system, my main laptop last 2.5 years usage),</div>
<div>
this doesn't count a few other development systems.</div>
</div>
<div class="p2">
<br />
Seems like a lot, but that's only ~133 commands per day average.<br />
<br />
<br /></div>
<div class="p2">
... So what is the ideal system audit trail ?</div>
<div class="p2">
<br /></div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-4652805833020937332014-03-20T12:01:00.000-04:002014-03-20T12:01:05.318-04:00Use fs_usage to monitor file system activity on OS X<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Here's 3 commands I've found useful over the past year to see:<br />
<br />
<ul style="text-align: left;">
<li>how much filesystem activity is going on<br />IOPS (i/o operations per second), approximately</li>
<li>which applications are causing the most activity</li>
<li>which files or paths in the filesystem are being accessed</li>
</ul>
<div>
I will assume some unix familiarity here; if you don't know where these commands go, then you probably don't understand the output either. Come back after you've learned more. All command lines are a single line, and appear below in courier bold.</div>
<div>
<br /></div>
<div>
Also, you need to be root for this.<br />
I like to keep past outputs, and in a separate directory to contain clutter, so if you want to use these commands without modification then first do (one time only):</div>
<div>
<b><span style="font-family: Courier New, Courier, monospace;">mkdir fs_usage</span></b></div>
<h2 style="text-align: left;">
1. Collect output from fs_usage</h2>
<div>
<span style="font-family: Courier New, Courier, monospace;">[42]original-mac 10:21:56 1082 ~# <b>fs=$[fs+1]; fsd=0216; time fs_usage -w -f filesys | grep '/.*/' | head -10000 > fs_usage/fs.$fsd.$fs </b> </span></div>
<br />
<div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">real 1m18.214s</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">user 0m1.379s</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">sys 0m1.428s</span></div>
</div>
<br />
<div>
<br /></div>
<div>
Here, only looking for the fs_usage output lines with pathnames (at least 2 slashes), the first 10k instances. You can do more or less... This took 78 seconds, which tells me the system is "fairly idle", at least mine, with the normal set of applications that I usually have open. I have seen it complete in as little as two or three seconds.</div>
<div>
<br /></div>
<div>
I set $fsd as the date, and then increment the filename each time; this is just a personal packrat preference, but you can just use a single file in /tmp if you like.</div>
<div>
<br /></div>
<div>
In this form, it's easy to wrap with a while or<br />
<span style="font-family: Courier New, Courier, monospace;">for sample in {1..10}; do ...; done</span>if you want to get ten samples, and then compare/combine the outputs. Putting output from time into a separate file left as exercise for the reader.</div>
<div>
<br /></div>
<div>
Note these do not directly correspond to disk accesses (reads/writes), just general i/o activity.</div>
<div>
'Activity Monitor' provides a graph of IOPS (or so it says); there are other benchmark programs if you want to check your disk (what's your favorite?).</div>
<h2 style="text-align: left;">
2. See which applications are issuing requests. </h2>
<div>
Note with fs_usage '-w' wide output, the application name starts in column 234. </div>
<div>
<br /></div>
<br />
<div>
<span style="font-family: Courier New, Courier, monospace;">[37]original-mac 10:02:40 1078 ~# <b>cat fs_usage/fs.$fsd.$fs | cut -c234- | sort | uniq -c | sort -n | tail -25</b></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 67 fseventsd.1560736</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 67 fseventsd.3241</span></div>
<div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 67 fseventsd.639202</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 80 CalendarAgent.2319030</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 81 mds.2317581</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 96 Dropbox.6042</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 114 leapd.2991</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 119 mdworker.2292251</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 120 fseventsd.3427</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 120 fseventsd.3428</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 131 Google Chrome.1506982</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 132 CalendarAgent.2319032</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 148 Google Chrome.1507028</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 152 launchd.210</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 154 opendirectoryd.2318992</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 154 opendirectoryd.2318994</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 156 Google Chrome.1507026</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 156 opendirectoryd.2318977</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 160 opendirectoryd.2318972</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 202 dbfseventsd.626141</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 206 mtmfs.780</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 230 Google Chrome.1506961</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 288 com.apple.iCloud.2319050</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 376 mtmd.781</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">6021 Google Chrome.1506955</span></div>
</div>
<div>
<br /></div>
<br />
<div>
Google Chrome is the majority of the activity... not particularly surprising (I currently have 30+ tabs open).</div>
<h2 style="text-align: left;">
<span style="font-family: inherit;">3. See what directories and files are being accessed</span></h2>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">[36]original-mac 10:01:26 1077 ~# </span><b style="font-family: 'Courier New', Courier, monospace;">cat fs_usage/fs.$fsd.$fs | cut -c57-200 | sort | cut -c1-60 | uniq -c | sort -n | tail -33</b></div>
<br />
<div>
<span style="font-family: Courier New, Courier, monospace;"> 20 /Users/todd/Library/Application%2525252520Support</span></div>
<div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 20 /private/var/folders/98/vpw5gnnx1xg_9l3vjv3cc7r00000gn/T/.co</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 20 0 /dev/disk0s2</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 20 private/var/folders/98/vpw5gnnx1xg_9l3vjv3cc7r00000gn/T/.com</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 21 /Applications/TextEdit.app</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 22 /Users/todd/Library/Application%252520Support>>>>>>>>>>>>>>></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 23 /Users/todd/Library</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 23 /Users/todd/Library/Application%20Support>>>>>>>>>>>>>>>>>>></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 23 /Users/todd/Library/Application%2520Support>>>>>>>>>>>>>>>>></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 24 /Users/todd/.dropbox/PENDING_MN7VKR</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 24 /Users/todd/.dropbox/UPDATED_Xp1v55</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 24 /Users/todd/Library/Application Support/Google/Chrome/.com.g</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 24 /Users/todd/Library/Application Support/Google/Chrome/Local</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 25 private/var/folders/98/vpw5gnnx1xg_9l3vjv3cc7r00000gn/T</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 29 /Users/todd/Library/Saved Application State/com.apple.Termin</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 31 /Users/todd</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 31 /Users/todd/Library/Calendars</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 32 00 /dev/disk0s3</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 36 /Users/todd/Library/Application Support/iCloud>>>>>>>>>>>>>></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 40 /Users/todd/Library/Calendars/CE0DC09B-CC04-47D0-9217-E0E295</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 42 /Users/todd/Library/Preferences/com.apple.security.revocatio</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 47 /Volumes/rescue </span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 58 /Users/todd/Library/Preferences/VMware Fusion/preferences</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 72 /System/Library/CoreServices/backupd.bundle/Contents/Resourc</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 89 /Users/todd/Library/Calendars/Calendar Cache-wal</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 104 /Users/todd/Library/Calendars/Calendar Cache-journal</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 114 /dev/console</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 115 /Users/todd/Library/Application Support/Google/Chrome</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 123 /private/var/folders/98/vpw5gnnx1xg_9l3vjv3cc7r00000gn/T</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 216 /System/Library/PrivateFrameworks/CalendarAgent.framework/Ex</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 250 /Users/todd/Library/Application Support/Google/Chrome/Safe B</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"> 454 0 /dev/disk0s3</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;">6487 /Users/todd/Library/Application Support/Google/Chrome/Defaul</span></div>
</div>
<div>
<br /></div>
<div>
Again, the fs_usage output has the pathname (since we explicitly grep'd for one) starting around column 57.. then I'm only looking at the first 60 characters of that path and aggregating to get a useful summary; you can use shorter or longer, or just search the raw output for specific files.</div>
<div>
<br /></div>
<div>
Mostly Chrome accessing my profile here. Not sure about the /dev/disk accesses, or why some lines have '>>>>..' in them... in the context of the full fs_usage output it might be more apparent. However, for my purposes of approximately finding out what is going on, these are useful.</div>
<div>
<br /></div>
<div>
You need to run this a few times on yoru system to determine a baseline--i.e., what normal levels of activity are, and which applications are generating them.</div>
<div>
<br /></div>
<div>
DISKS ARE SLOW, limited to one head per platter, and you have to wait for it to rotate into place.. a limiting resource (if you have an SSD or hybrid disk or RAID with battery-backed write-cache memory--they are a little better). Sometimes you can't avoid them (e.g., you have to save your work). But if/when your system starts slowing down, this can provide a little insight into what may be the bottleneck, and what unnecessary items you can shut down.</div>
<div>
<br /></div>
<div>
<br /></div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-28515235895442001482014-03-20T11:59:00.004-04:002014-03-20T11:59:35.680-04:00Emacs (Aquamacs) VC (SVN) failure to authenticate<div dir="ltr" style="text-align: left;" trbidi="on">
At somepoint when I upgraded my Aquamacs this stopped working:<br />
C-x v v within aquamacs should do an "svn commit".<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">svn: E215004: Authentication failed and interactive prompting is disabled; see the --force-interactive option</span><br />
<span style="font-family: Courier New, Courier, monospace;">svn: E215004: Commit failed (details follow):</span><br />
<span style="font-family: Courier New, Courier, monospace;">svn: E215004: Unable to connect to a repository at URL 'https://svn.foo.com/svn/myproject/etc/etc'</span><br />
<span style="font-family: Courier New, Courier, monospace;">svn: E215004: No more credentials or we tried too many times.</span><br />
<span style="font-family: Courier New, Courier, monospace;">Authentication failed</span><br />
<br />
Aquamacs version:<br />
<span style="font-family: Courier New, Courier, monospace;">GNU Emacs 23.4.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37) of 2013-06-13 on acs-trailblazer.ist.psu.edu - Aquamacs Distribution 2.5</span><br />
<div>
<br /></div>
<div>
from cmd-line, same thing! I thought that worked.</div>
<div>
<div>
<span style="font-family: Courier New, Courier, monospace;">GNU Emacs 24.3.1 (x86_64-apple-darwin12.5.0) of 2013-12-22 on teneight-slave.macports.org</span></div>
</div>
<div>
<br /></div>
<div>
there is the possibility something in my .emacs</div>
<div>
no; 'emacs -q' produces the same thing.</div>
<div>
<br /></div>
<div>
vc.el ? I guess next step is to load the elisp source, and start to dig in.</div>
<div>
<br /></div>
<div>
For now, I've reverted to calling svn from the cmd line.</div>
<div>
I'm trying to switch over to git anyway, and this just encourages that (because vc+git is (still) working)...</div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-43249027093756701642014-01-13T16:15:00.000-05:002014-01-13T16:15:10.642-05:00Configuring Brother HL-2170W with wireless and WPA2<div dir="ltr" style="text-align: left;" trbidi="on">
Configuring with wireless and WPA2<br />
<br />
The Brother HL-2170W is a nice affordable black and white laser printer, and because it is wireless, you can put it anywhere in your house that is convenient (after you have the wireless configured). Here's how:<br />
<br />
First, your printer need to be connected via ethernet to your network (into your router is probably simplest, but you can also do it directly to your computer if you have a DHCP server running).<br />
<br />
Find the IP of the printer and enter it into your browser; this will be up the web configuration interface.<br />
Click "Network Configuration", and enter 'admin' for username, 'access' for the password.<br />
<br />
All the above info should be in the manual (if you have it, I don't),<br />or see the helpful instructions here: http://www.brother-usa.com/faqs/static/ale_17465.pdf<br />
<br />
The following steps are wireless specific:<br />
<br />
<ol style="text-align: left;">
<li>Enter the value for SSID.<br />It's easier to click the 'Browse' button and find your network<br />(unless you know that SSID broadcast is turned off.)</li>
<li>For Authentication Method, select WPA2-PSK</li>
<li>For Encryption Mode, choose AES (not TKIP, which is the default)<br /><b>This was the important setting for me</b></li>
<li>Enter your wireless "password in the Passphrase box.</li>
<li>Click Submit button.</li>
</ol>
<div>
It should quickly reply with a "settings have been entered" page, and after a few seconds will update with a message telling you to disconnect the ethernet. Hopefully you will be connected now. After another 30 seconds or so it will print a network status page; if it was successful, there will be a line listed near the bottom with "Wireless link status".</div>
<div>
<br /></div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com2tag:blogger.com,1999:blog-1195794788257914533.post-1154591946634755812013-08-27T11:07:00.000-04:002013-08-27T11:07:42.495-04:00CPAN: Terminal does not support GetHistory (No ReadLine support)<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Surprised to see these messages come up again, I thought this had gone away in the 90's.<br />
<br />
Disk is cheap now; why not just include all these packages?<br />
<br />
Or at least: grab my personal [developer] profile, see all the packages I have installed, <br />offer to display them for me. <br />Show me which I use frequently, a web page with statistics and links to latest news...<br />
<br />
In case I come across this again, I will note:<br />
CPAN: <br />
Terminal does not support GetHistory<br />
Terminal does not support AddHistory<br />
<br />
<br />
if you are using a 'straight' CPAN system:<br />
<br />
install Term::ReadLine::Gnu<br />
<br />
<br />
linux, as a package:<br />
sudo apt-get install libterm-readline-gnu-perl </div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-68730476383051486482013-08-18T20:45:00.000-04:002013-08-18T20:45:21.672-04:00Annoyances for 18 August, 2013<div dir="ltr" style="text-align: left;" trbidi="on">
Actually, these have been building for a long time; I've just decided to collect them now, and ideally, find some answers.<br />
<br />
Bitcasa:<br />
<br />
<ul style="text-align: left;">
<li>Opaqueness of Bitcasa: it says "513kb to go" or "788 bytes to go", and seems to just switch back and forth between those numbers. Network bandwidth at 250KB/sec for several minutes, never getting to zero. 3 hours to finally finish from where it said 13M (and 33 hours from ~1570Mb...<br /></li>
<li>Efficiency of Bitcasa: 800M of RAM when I'm just looking at files? 1G+ sometimes? You're using a huge chunk of disk for cache, what do you need all the RAM for ?<br /></li>
<li>Interface: I alt-tab over, Cmd-, to bring up preferences (only to see how munch I am using) and then what key do I use to get rid of the window? ESC? Cmd-W ? <br />No, I HAVE TO CLICK. I DON"T WANT TO USE THE MOUSE><br /></li>
<li>bitcasa, why 15 minutes to list 600000 files (using find + stat)? <br />Doulbe why: sustained CPU at 80% during this time, but not much network. Should be less that 50M total transmitted (need to estimate). I saw stuff disappear before; until I trust you more, I'm going to keep checking. [Maybe staggered checking is better.]</li>
</ul>
<br />
<br />
Last.fm -- 25M download? It seemed to never install successfully either. Finally, with iTunes 11 it does? <br />
<br />
iTunes -- you say you're started, but no window? Why don't windows show when I alt-tab to the icon? Where are you? I have to click ?!? To get the 'agreement' window for new iTumes? what's so special about this window, why can't it act like a normal window?<br />
<br />
Maybe it's not just iTunes, maybe other applications too since Mountain Lion. Or maybe just Apple's apps ?<br />
<br />
Mountain Lion (10.8.4) - I finally recently upgrade from Snow Leapord (10.6.8) about 3 weeks ago--had to because my LEAPmotion controller required it.<br />
Pros:<br />
<br />
<ul style="text-align: left;">
<li>Upgrade process <b>*very*</b> smooth -- totally online, cheap ($20), no effort (1 click, walk away, come back, no surprises)</li>
<li>Hibernate seems to work now; at least it has a couple times. I frequently fall asleep on the couch after opening my laptop when it's charged, and don't bother plugging in (or it comes unplugged)... then I wake up to it being off. Maybe I should take care of the "Service battery" status? -- but pretty impressed it still gives 2 hours after 4 years.</li>
<li>Re-opens (all?) applications that were running from before reboot.<br />Slightly mixed about this; Terminal opens, but not all my screen windows. </li>
<li>TimeMachine also uses free disk when you're not connected to your TM backup drive?<br />or is this part of MobileMe, I mean iCloud ? no, I didn't sign up.</li>
<li>Also, java: automatically downloads 1.6 when I started Eclipse; <br />and system updates automatically install 1.7 (aka Java 7).</li>
<li>XCode (developer tools, compiler etc) and easy one-click install from the app store.<br />Mostly I needed it for 'macports' so I could update it (because my old system was so out of date..).<br />Possibly useful in the future for iOS, though I think 1) Android is bigger and better, and 2) HTML5 is a better choice before native iOS. Still, a think iOS wrapper app might be able to provide some control/integration features.</li>
<li>Notification center -- seems to be a good centralized idea.<br />Configurable. Note to self: I should maybe not have my calendar reminders on screen ?</li>
</ul>
<div>
Cons (or more things that I haven't gotten used to (yet)):</div>
<div>
<ul style="text-align: left;">
<li>'Natural scrolling'</li>
<li>'desktops' v spaces. wish I could rename.<br />but maybe it best that they remain temporary, to reduce multi-tasking ?</li>
<li>CalendarAgent takes a lot of cpu, never syncs...</li>
<li>MagicPrefs starts with two icons (doesn't seem to be two copies running)</li>
<li>Bitcasa *doesn't* autostart.</li>
<li>VMware .. gone. I didn't upgrade before even when VMware fusion nagged me; <br />after the upgrade, it's "damaged goods".<br />Maybe I'll just stick with VirtualBox -- it's multi-platform.</li>
<li>no Rosetta? I might like for a thing or two .. ?</li>
<li>app store. I'm an old-school sysadmin control-freak who wants total control;<br />maybe I should just relent, realize you can't pop the hood on some machines</li>
</ul>
<div>
Still note this is WAY ahead of WINDOWS. To people who complain Macs are more expensive, realize that you will not have to spend 1-2 hours per week with anti-virus scans; your disk speed is not reduced because every file also has to be read by anti-virus software before your program starts or your application can read it. How much is your time worth to you? Consider the reduced frustration and stress. (Windows is a sinking ship ..). </div>
<div>
<br /></div>
<div>
windows abomination legacy sinking ship; please, launch your torpedo. competition is good, but windows is just not up to the task. everyone, just keep it in some virtual corner (if you have to have it) as a warning to future occupants. suckit ballmer.</div>
<div>
<br /></div>
<div>
LEAPmotion - eats a ton of cpu. 20% when no movement, 65% cpu when I'm moving my hand around it, even when nothing is reading... (so I have an old computer.. 2.5GHz dual core should not require that much).</div>
<div>
<br /></div>
<div>
VMware -- something better could be done than being gone after ML upgrade. Is it ML's fault?</div>
<div>
<br /></div>
<div>
CiscoVPN -- fills up my log files (system.log, others?) with messages like<br />acwebsecagent[151]: License : One or more of the License/Public Key can't be NULL</div>
<div>
and plenty others.</div>
<div>
[ maybe uninstall, re-install w/ out certain components ? ]</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
</div>
<div>
General notes on software:<br />although better than ever, the current state is still lagging behind my vision by what seems like five, ten years, and growing. So while I get older, more jaded, more cynical and curmudgeonly, it's more frustrating. </div>
<div>
<br /></div>
<div>
On the other hand, I understand how hard it is to write software.. and how short our vision really is, a limited understanding and capacity for anything beyond a few chunks at a time.</div>
<br />
<br />
On the third hand, there is more development than ever before, exponentially so; I get frustrated with myself trying to keep up.<br />
<br />
There are better software management tools. There are just so many. And each are different, for<br />
rpm's, pkg, npm, ruby gems, python libs, github, maven, CPAN, JPAN, RCRAN (?);<br />sourceforge, google code,<br />
<br />
<br />
<br />
... will organzine and update more later.<br />
maybe find some answers.<br />
<br /></div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com1tag:blogger.com,1999:blog-1195794788257914533.post-41860754851427799032013-08-07T23:04:00.000-04:002014-02-17T23:05:40.161-05:00Is making the Web look like paper the best we can do ?<div dir="ltr" style="text-align: left;" trbidi="on">
Why hypertext was better before WWW.<br />
<br />
[not sure if pro & con, or a quadrants (2x2 ) are better. I think there's only 2 choices..<br />
hmm.. <br />
what if a tool allows you to pick importance of issues, and weights<br />
and compare your graph to others?<br />
<br />
or (better?) query before, and then after you read to guage any change in attitude. then show you the graph (and others graphs)<br />
<br />
<br />
pro pre-<br />
<br />
<ul style="text-align: left;">
<li>magical potential</li>
<li>very different from paper</li>
<li>no interface to get in the way; no browser quirks, no ads!</li>
<li>semantic, typed links</li>
<li>texts were all-encompassing, contained everything you needed but showed you only what you wanted</li>
<li>Xanadu and Ted Nelson was less jaded</li>
</ul>
<div>
con pre-</div>
<div>
<ul style="text-align: left;">
<li>mostly fictional</li>
<li>each hypertext a silo; completely different models, tools, architecture</li>
</ul>
<div>
<br /></div>
</div>
<br />
IBIS as argument store.<br />
<div>
Nodes in the graph can represent attitudes</div>
<div>
<i><br /></i>
<i>.. a work in progress ..</i></div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-39017675627253052152013-08-04T14:43:00.000-04:002014-11-09T13:47:40.285-05:00Macbook external monitor loses sync, goes into loop flashing blue<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
Symptom:</h2>
External monitor (connected via mini-port to hdmi adapter) loses sync or doesn't display, Macbook screen flashes blue like it wants to show the external display but can't. Keeps doing this over and over again.<br />
<br />
The first time I plug it in it nearly always gets the connection. The time that it fails seems to be when already plugged in, and the screen wakes up from screen saver.<br />
<h2 style="text-align: left;">
Solution:</h2>
Unplug and plug mini-port display adapter back in. This works for me at least 95% of the time the first time, then probably 100% of the time the second time. Unless the adapter has failed, in which case it won't. <br />
<br />
When the adapter is failing, there is no way to determine what is going on. Results will be intermittant and random, and (can't be) explained by any event. Might be the phase of the moon, could be sacrificing a goat or chicken, and then the next day it's the chicken. Or the goat. It will be just like religion.<br />
<br />
I wish there was a way to reset it; I have tried the following:<br />
<br />
<ul style="text-align: left;">
<li>like put the monitors back to sleep, then re-awaken. This doesn't help. </li>
<li>I've also tried putting the computer to sleep, then waking back up.</li>
<li>Bring up the monitors controller, while the screen is flashing from blue to normal,<br />and trying "Detect displays" but this hasn't worked</li>
<li>Turning the external monitor off and back on.<br />When it's off, it behaves exactly if there is no second monitor connected.<br />When on, it goes into flashing blue mode again.<br />--> this implies it is in the state of the Mac, not the state of the monitor.<br /><br />To TRY:<br /> - put mac to sleep, disconnect adapter and plug back in, then wake up mac</li>
</ul>
<div>
There is also "<span style="background-color: white; color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14.399999618530273px; line-height: 15.199999809265137px;">resetting the parameter RAM" and SMC</span></div>
<div>
<span style="background-color: white; color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14.399999618530273px; line-height: 15.199999809265137px;">(doesn't help if adapter is broken).</span></div>
<div>
<span style="background-color: white; color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14.399999618530273px; line-height: 15.199999809265137px;"><br /></span></div>
<div>
<span style="background-color: white; color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14.399999618530273px; line-height: 15.199999809265137px;">What worked for you ?</span><br />
<span style="background-color: white; color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14.399999618530273px; line-height: 15.199999809265137px;"><br /></span>
<span style="background-color: white; color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14.399999618530273px; line-height: 15.199999809265137px;">2013.08.28 Update:</span><br />
<span style="background-color: white; color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14.399999618530273px; line-height: 15.199999809265137px;">After upgrading to Mountain Lion 10.8.4 (previously was Snow Leopard, 10.6.8) it seems it might be a little better. Some differences:</span><br />
<br />
<ul style="text-align: left;">
<li><span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;">After wake from sleeping display (not awake from standby, just after the screen has blanked) the laptop may have a blue screen but the external monitor remains blank and powered off. After entering password, the laptop screen came back (no longer blue);<br />once the external monitor came back, another time it didn't (I had to unplug/plug it back it to get the display back).</span></span></li>
<li><span style="color: #333333;"><span style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14px; line-height: 15.1875px;">A couple times my system seemed to hang completely after the display woke back up, getting hot and with the fan running, to the extent I had to forcibly power it off (it may have already been hung to some extent due to other processes, but the display partially "woke up").</span><br /><br /><span style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14px; line-height: 15.1875px;">Once I was able to log in remotely to see was might be going on, first thing I saw was</span><br /><span style="line-height: 15.1875px;"><span style="font-family: Courier New, Courier, monospace;">21:53 up 1 day, 4:39, 10 users, load averages: <b>66.81</b> 27.60 11.78</span></span></span><span style="color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; font-size: 14px; line-height: 15.1875px;">(note that is an EXTREMELY high load average) and saw these processes:</span></li>
</ul>
<div>
<br />
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;">
</span></span>
<br />
<pre><span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;"> 88 92 1 0 Mon05PM ?? 30:22.22 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/WindowServer -daemon
501 16972 92 0 9:53PM ?? 0:00.25 /System/Library/CoreServices/DMProxy -discovery
501 16973 92 0 9:53PM ?? 0:00.24 /System/Library/CoreServices/DMProxy -login
0 16974 92 0 9:53PM ?? 0:00.27 /System/Library/CoreServices/DMProxy -login
0 16976 92 0 9:53PM ?? 0:00.22 /System/Library/CoreServices/DMProxy -discovery
501 16977 92 0 9:53PM ?? 0:00.19 /System/Library/CoreServices/DMProxy -login
501 16978 92 0 9:53PM ?? 0:00.19 /System/Library/CoreServices/DMProxy -login
501 16979 92 0 9:53PM ?? 0:00.19 /System/Library/CoreServices/DMProxy -login
501 16980 92 0 9:54PM ?? 0:00.07 /System/Library/CoreServices/DMProxy -discovery
501 16981 92 0 9:54PM ?? 0:00.07 /System/Library/CoreServices/DMProxy -discovery
0 16982 92 0 9:54PM ?? 0:00.08 /System/Library/CoreServices/DMProxy -discovery
501 16999 92 0 9:54PM ?? 0:00.04 /System/Library/CoreServices/DMProxy -discovery
501 17000 92 0 9:54PM ?? 0:00.03 /System/Library/CoreServices/DMProxy -discovery
501 17001 92 0 9:54PM ?? 0:00.03 /System/Library/CoreServices/DMProxy -discovery
</span></span></pre>
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;">
</span></span>
<br />
<div>
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;"><br /></span></span>
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;">I unplugged the miniport adapter, and everything started to go back to normal. Lots of activity in the log files (/var/log/system.log) but I haven't analyzed in detail yet, but messages like this repeat over and over:</span></span><br />
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;"><br /></span></span></div>
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;">
</span></span>
<div>
<pre><span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;">Aug 20 21:49:38 macbookpro WindowServer[92]: Received display connect changed for display 0x4272900
Aug 20 21:49:38 macbookpro WindowServer[92]: Created shield window 0x29c9 for display 0x04272900
Aug 20 21:49:38 macbookpro WindowServer[92]: handle_will_sleep_auth_and_shield_windows: no action for lock state 1
Aug 20 21:49:38 macbookpro WindowServer[92]: Received display connect changed for display 0x3f003d
Aug 20 21:49:39 macbookpro WindowServer[92]: Display 0x04272900: GL mask 0x1; bounds (0, 0)[1440 x 900], 36 modes available
Aug 20 21:49:39 macbookpro WindowServer[92]: GLCompositor: GL renderer id 0x0102260e, GL mask 0x00000003, accelerator 0x00003c7f, unit 0, caps QEX|QGL|MIPMAP, vram 256 MB
Aug 20 21:49:39 macbookpro WindowServer[92]: Display 0x003f003d: GL mask 0x2; bounds (2464, 0)[1 x 1], 1 modes available
Aug 20 21:49:39 macbookpro WindowServer[92]: Created shield window 0x29ca for display 0x04272900
Aug 20 21:49:39 macbookpro WindowServer[92]: Created shield window 0x29cb for display 0x003f003d
Aug 20 21:49:40 macbookpro WindowServer[92]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
Aug 20 21:49:44 macbookpro WindowServer[92]: post_notification : Time out waiting for reply from "Flux" for notification type 109 (CID 0x16603, PID 992)
Aug 20 21:49:44 macbookpro WindowServer[92]: Display 0x04272900: MappedDisplay Unit 0: Startup Mode 1440 x 900, CGSThirtytwoBitColor, Resolution 1, IOMode 0x80000000, IODepth 0x2, IOReturn 0x0
Aug 20 21:49:44 macbookpro WindowServer[92]: Display added
Aug 20 21:49:44 macbookpro WindowServer[92]: Display removed
Aug 20 21:49:44 macbookpro WindowServer[92]: Display 0x04272900: GL mask 0x1; bounds (0, 0)[1440 x 900], 36 modes available
Aug 20 21:49:44 macbookpro WindowServer[92]: GLCompositor: GL renderer id 0x0102260e, GL mask 0x00000003, accelerator 0x00003c7f, unit 0, caps QEX|QGL|MIPMAP, vram 256 MB
Aug 20 21:49:44 macbookpro WindowServer[92]: Display 0x003f003d: GL mask 0x2; bounds (2464, 0)[1 x 1], 1 modes available
Aug 20 21:49:44 macbookpro WindowServer[92]: Display 0x04272900: MappedDisplay Unit 0; ColorProfile { 3, "Color LCD"}; TransferTable (256, 3)
Aug 20 21:49:45 --- last message repeated 1 time ---
Aug 20 21:49:46 macbookpro WindowServer[92]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
Aug 20 21:49:46 macbookpro WindowServer[92]: Display 0x04272900: MappedDisplay Unit 0; ColorProfile { 3, "Color LCD"}; TransferTable (256, 3)
Aug 20 21:49:48 --- last message repeated 1 time ---
Aug 20 21:50:51 macbookpro WindowServer[92]: Received display connect changed for display 0x4272900
Aug 20 21:50:51 macbookpro WindowServer[92]: Created shield window 0x2a18 for display 0x04272900
Aug 20 21:50:51 macbookpro WindowServer[92]: handle_will_sleep_auth_and_shield_windows: no action for lock state 1
Aug 20 21:50:51 macbookpro WindowServer[92]: Received display connect changed for display 0x3f003d
Aug 20 21:50:51 macbookpro WindowServer[92]: Created shield window 0x2a19 for display 0x19c6b0c1
Aug 20 21:50:51 macbookpro WindowServer[92]: handle_will_sleep_auth_and_shield_windows: no action for lock state 1
Aug 20 21:50:52 macbookpro WindowServer[92]: Display 0x19c6b0c1: GL mask 0x2; bounds (0, 0)[1920 x 1080], 48 modes available
Aug 20 21:50:52 macbookpro WindowServer[92]: Display 0x04272900: GL mask 0x1; bounds (-1440, 0)[1440 x 900], 36 modes available
Aug 20 21:50:52 macbookpro WindowServer[92]: GLCompositor: GL renderer id 0x0102260e, GL mask 0x00000003, accelerator 0x00003c7f, unit 0, caps QEX|QGL|MIPMAP, vram 256 MB
Aug 20 21:50:52 macbookpro WindowServer[92]: Created shield window 0x2a1a for display 0x19c6b0c1
Aug 20 21:50:52 macbookpro WindowServer[92]: Created shield window 0x2a1b for display 0x04272900
Aug 20 21:50:52 macbookpro WindowServer[92]: Display 0x19c6b0c1: MappedDisplay Unit 1: Startup Mode 1920 x 1080, CGSThirtytwoBitColor, Resolution 1, IOMode 0x80001000, IODepth 0x2, IOReturn 0x0
Aug 20 21:50:52 macbookpro WindowServer[92]: Display 0x04272900: MappedDisplay Unit 0: Startup Mode 1440 x 900, CGSThirtytwoBitColor, Resolution 1, IOMode 0x80001000, IODepth 0x2, IOReturn 0x0
Aug 20 21:50:52 macbookpro WindowServer[92]: Display added
Aug 20 21:50:52 macbookpro WindowServer[92]: Display removed
Aug 20 21:50:52 macbookpro WindowServer[92]: Display 0x19c6b0c1: GL mask 0x2; bounds (0, 0)[1920 x 1080], 48 modes available
Aug 20 21:50:52 macbookpro WindowServer[92]: GLCompositor: GL renderer id 0x0102260e, GL mask 0x00000003, accelerator 0x00003c7f, unit 0, caps QEX|QGL|MIPMAP, vram 256 MB
Aug 20 21:50:52 macbookpro WindowServer[92]: Display 0x04272900: GL mask 0x1; bounds (-1440, 369)[1440 x 900], 36 modes available
Aug 20 21:50:52 macbookpro WindowServer[92]: GLCompositor: GL renderer id 0x0102260e, GL mask 0x00000003, accelerator 0x00003c7f, unit 0, caps QEX|QGL|MIPMAP, vram 256 MB
Aug 20 21:50:53 macbookpro WindowServer[92]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
Aug 20 21:50:55 --- last message repeated 3 times ---
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x19c6b0c1: MappedDisplay Unit 1; ColorProfile { 4, "HF237"}; TransferFormula (1.000000, 1.000000, 1.000000)
Aug 20 21:50:55 --- last message repeated 1 time ---
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x04272900: MappedDisplay Unit 0; ColorProfile { 3, "Color LCD"}; TransferTable (256, 3)
Aug 20 21:50:55 --- last message repeated 1 time ---
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x19c6b0c1: MappedDisplay Unit 1; ColorProfile { 4, "HF237"}; TransferFormula (1.000000, 1.000000, 1.000000)
Aug 20 21:50:55 --- last message repeated 1 time ---
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x04272900: MappedDisplay Unit 0; ColorProfile { 3, "Color LCD"}; TransferTable (256, 3)
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x19c6b0c1: MappedDisplay Unit 1; ColorProfile { 4, "HF237"}; TransferFormula (1.000000, 1.000000, 1.000000)
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x04272900: MappedDisplay Unit 0; ColorProfile { 3, "Color LCD"}; TransferTable (256, 3)
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x19c6b0c1: MappedDisplay Unit 1; ColorProfile { 4, "HF237"}; TransferFormula (1.000000, 1.000000, 1.000000)
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x04272900: MappedDisplay Unit 0; ColorProfile { 3, "Color LCD"}; TransferTable (256, 3)
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x19c6b0c1: MappedDisplay Unit 1; ColorProfile { 4, "HF237"}; TransferFormula (1.000000, 1.000000, 1.000000)
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x04272900: MappedDisplay Unit 0; ColorProfile { 3, "Color LCD"}; TransferTable (256, 3)
Aug 20 21:50:55 --- last message repeated 1 time ---
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x19c6b0c1: MappedDisplay Unit 1; ColorProfile { 4, "HF237"}; TransferFormula (1.000000, 1.000000, 1.000000)
Aug 20 21:50:55 macbookpro WindowServer[92]: Display 0x04272900: MappedDisplay Unit 0; ColorProfile { 3, "Color LCD"}; TransferTable (256, 3)
Aug 20 21:51:17 macbookpro WindowServer[92]: Received display connect changed for display 0x4272900
Aug 20 21:51:17 macbookpro WindowServer[92]: Created shield window 0x2a47 for display 0x04272900
Aug 20 21:51:17 macbookpro WindowServer[92]: handle_will_sleep_auth_and_shield_windows: no action for lock state 1
Aug 20 21:51:17 macbookpro WindowServer[92]: Received display connect changed for display 0x19c6b0c1
Aug 20 21:51:17 macbookpro Flux[992]: CGSGetSizeOfDisplayTransfer: Invalid display 0x19c6b0c1
Aug 20 21:51:17 macbookpro Google Chrome[1011]: CGSGetCurrentDisplayMode: Invalid display 0x19c6b0c1
Aug 20 21:51:17 --- last message repeated 1 time ---
Aug 20 21:51:17 macbookpro Terminal[313]: CGSGetCurrentDisplayMode: Invalid display 0x19c6b0c1
Aug 20 21:51:17 --- last message repeated 1 time ---
Aug 20 21:51:17 macbookpro Flux[992]: CGSGetSizeOfDisplayTransfer: Invalid display 0x19c6b0c1
</span></span></pre>
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;"><br /></span></span>
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;">... Lots of 'display added', 'display removed' messages; oddly, the external monitor (HF237) was not identified until about 3 minutes later (but still came as invalid).</span></span><br />
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;"><br /></span></span>
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;">Anyway, unplugging and plugging the display back in still seems to be the best solution</span></span><br />
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;"><br /></span></span>
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;"><br /></span></span>
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;"><b><i>2014 Update:</i></b> after updating to OS X 10.8 (Mountain Lion) this has rarely happened. Occasionally the external doesn't properly reconnect after display wakeup or resume from standby, but not the endless looping with screen flashing blue. Unplug/plug back in always seems to fix it, it's just required a lot less frequently.</span></span></div>
<span style="color: #333333; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;"><span style="font-size: 14px; line-height: 15.1875px;">
</span></span></div>
</div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-44391317732515196722013-07-26T15:06:00.000-04:002013-07-26T15:06:20.759-04:00My Camera Buying Strategy<div dir="ltr" style="text-align: left;" trbidi="on">
I tend to over-research purchases like this; here's my strategy:<br />
<br />
The last couple times I was in the market for a new camera I spent 8 or 10 bucks for one of those "Digital camera buyer's guide" you see on magazine racks. This gives a good table of hundreds of models and features, what the latest models have, etc. Then I check online for prices and reviews. Dpreview.com has really in-depth previews (20+ pages) for the cameras they do review; adorama.com and bhphoto.com have good reviews from camera-heads, amazon and newegg are good for more consumer-type reviews. For pricing, I'd probably check them all. <br />
<br />
[Your Camera Doesn't<br />
Matter](http://www.kenrockwell.com/tech/notcamera.htm) is a great<br />
article to make you think twice about spending (more) money. The best<br />
camera is the one you have with you; and <br />
[sensor size](http://en.wikipedia.org/wiki/Image_sensor_format) and<br />
optices are more important than megapixels.<br />
<br />
DSLR's do seem to keep their value pretty well, so could be seen as an<br />
investment. Used ones are good too and you might not worry about<br />
carrying it around as much as a brand new expensive one. If you like<br />
to hack and want to really expand your camera's abilities, look at<br />
CHDK (Canon point-and-shoot; search flicker) or Magic Lantern (Canon<br />
<div>
<div>
DSLRs) alternative firmwares. These give additional capabilities like</div>
<div>
motion detection (catch lightning strikes), time lapse, auto</div>
<div>
bracketing, etc. that would otherwise add hundreds to the cost.</div>
<div>
<br /></div>
<div>
posted in</div>
<div>
http://www.reddit.com/r/pittsburgh/comments/1hk0yu/camera_stores_in_pittsburgh/</div>
</div>
<div>
<br /></div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-20606742273759432822013-07-24T14:54:00.001-04:002013-07-24T14:54:05.661-04:00Aquamacs Emacs color themes<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
Mostly a crude note to myself so I remember--this is just something I started trying and haven't commited to memory or .emacs yet. Expect updates (post a comment to get an email I think, or remember to check back).</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
HOWTO:</div>
<br />
<li style="text-align: left;">M-x color-theme-select</li>
<li style="text-align: left;">Pick one (click with mouse, move and hit enter</li>
<br />
<div style="text-align: right;">
Mode help says:</div>
<div style="text-align: left;">
(use M-x describe-mode, or ^H m)</div>
<div style="text-align: right;">
Color Themes mode:</div>
<div style="text-align: right;">
Major mode to select and install color themes.</div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
Use I to install a color theme on all frames.</div>
<div style="text-align: right;">
Use L to install a color theme for the current frame only.</div>
<div style="text-align: left;">
'L' is a useful way to have different colors</div>
<div style="text-align: left;">
in a different frame,</div>
<div style="text-align: left;">
to either try out, </div>
<div style="text-align: left;">
or keep separate windows for separate tasks.</div>
<div style="text-align: right;">
The changes are applied on top of your current setup. This is a</div>
<div style="text-align: right;">
feature.</div>
<div style="text-align: left;">
Feature 'on top of' means that </div>
<div style="text-align: left;">
each theme only affects a subset of all possible settings</div>
<div style="text-align: left;">
(may be fonts, colors, certain modes, etc.), </div>
<div style="text-align: left;">
so order of application will make a difference.</div>
<div style="text-align: right;">
<div>
If you worry about the size of color-theme.el: You are right. Use</div>
<div>
P to print the current color theme and save the resulting buffer</div>
</div>
<div style="text-align: left;">
for example, 678 lines</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
I (usually) prefer light text / dark background. I haven't spent any time tuning or tweaking yet, there are many existing themes to try first.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Theme notes:</div>
<div style="text-align: left;">
<ul style="text-align: left;">
<li>Arjen - ok, but echo area unreadable</li>
<li>Bharadwaj - looks like default ?</li>
<li>Blue Sea - nice purple</li>
<li>Cooper Dark - trying (7/24)</li>
</ul>
<div>
Couple links, form searching "aquamacs select color theme":<br />
<br />
<ul style="text-align: left;">
<li><a href="http://nets.ucar.edu/nets/intro/staff/siemsen/mac/aquamacs.html">Aquamacs (Pete's notes)</a></li>
<li><a href="http://www.emacswiki.org/emacs/AquamacsFAQ">EmacsWiki: Aquamacs FAQ</a></li>
</ul>
</div>
<div>
<br /></div>
<div>
Somewhere my previous setting from M-x customize for modeline color/font.. where was that saved? what's it called?</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
and what are these desktop commands? I found a emacs.desktop file:</div>
<div>
<div>
Click <mouse-2> on a completion to select it.</mouse-2></div>
<div>
In this buffer, type RET to select the completion near point.</div>
<div>
<br /></div>
<div>
Possible completions are:</div>
<div>
desktop-change-dir <span class="Apple-tab-span" style="white-space: pre;"> </span>desktop-clear</div>
<div>
desktop-read <span class="Apple-tab-span" style="white-space: pre;"> </span>desktop-remove</div>
<div>
desktop-revert <span class="Apple-tab-span" style="white-space: pre;"> </span>desktop-save</div>
<div>
desktop-save-in-desktop-dir</div>
<div>
desktop-save-mode<br />
<i><br /></i>
<i>... to be continued..</i></div>
</div>
</div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com2tag:blogger.com,1999:blog-1195794788257914533.post-15867421733632812232013-07-03T14:19:00.000-04:002013-07-03T14:19:55.357-04:00My LinkedIn policy for connecting<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #222222; font-family: arial; font-size: x-small;">I often get requests to connect from recruiters, etc., which I appreciate.</span><br />
<span style="background-color: white; color: #222222; font-family: arial; font-size: x-small;">However, this is my policy and the email I send them:</span><br />
<span style="background-color: white; color: #222222; font-family: arial; font-size: x-small;"><br /></span>
<span style="background-color: white; color: #222222; font-family: arial; font-size: x-small;"><b>Thanks, but I make it a rule (99% of the time anyway) to only connect with people I actually know / have met.</b></span><br />
<span style="background-color: white; color: #222222; font-family: arial; font-size: x-small;"><br /></span>
<span style="background-color: white; color: #222222; font-family: arial; font-size: x-small;">Exceptions:</span><br />
<br />
<ol style="text-align: left;">
<li><span style="color: #222222; font-family: arial; font-size: x-small;">I really respect your work (or your admiration for me), or you're really cool<br /></span></li>
<li><span style="color: #222222; font-family: arial; font-size: x-small;">Our interests or friends are so similar I can't believe we haven't met yet, but we should!<br /></span></li>
<li><span style="color: #222222; font-family: arial; font-size: x-small;">We have exchanged email a few times or transacted in other ways (which means really that we "know" each other)<br /></span></li>
<li><span style="color: #222222; font-family: arial; font-size: x-small;">Our networks are so dissimilar or disconnected that we should connect them for some kind of multi-disciplinary cross-pollination possible synergisms<br /><br /></span></li>
<li><span style="color: #222222; font-family: arial; font-size: x-small;">For networking possiblities (I guess similar to 4)<br /></span></li>
<li><span style="color: #222222; font-family: arial; font-size: x-small;">For the right amount of money (hey--everyone has their price)</span></li>
</ol>
<div>
<span style="color: #222222; font-family: arial; font-size: x-small;"><br /></span></div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-82843384267020023612013-05-25T13:14:00.000-04:002013-05-25T13:14:21.160-04:00(maybe it's your proxy?) Cisco AnyConnect: Secure VPN connection terminated locally by the client. Reason 403: Unable to contact the secure gateway.<div dir="ltr" style="text-align: left;" trbidi="on">
<i><span style="font-size: x-small;">[from 2010, bit me once and stole an hour or two of my time..]</span></i><br />
<span style="font-size: x-small;">Caution: technical networking discsussed</span><br />
<br />
From the Cisco AnyConnect vpn software:<br />
<b>Secure VPN connection terminated locally by the client. Reason 403: Unable to contact the secure gateway.</b><br />
<br />
This was from WinXP running in a vm on my Mac. Worked under two other vm's fine.<br />
<br />
I could ping the VPN host fine. This WinXP machine was setup with some port forwarding and squid, because they took away the Mac client for no reason. So, this VM was my gateway (application-level routed..).<br />
<br />
I tried rebooting; updated the VMware tools too; I thought this might be the issue. Updated the VMware tools on another machine, it was fine. Checked for any other DTLS (datagram transport layer security--basically, SSL over UDP) vpn clients that might work with Cisco but didn't find any.<br />
I was about to start sniffing the traffic to see what was actually happening at the wire level. <br />
<br />
I decided to just uninstall it; after all, it couldn't get more broken that it already was. <br />
Uninstall was successful, so I started a browser to make the SSL connection which automatically downloads and installs the client. Right away, an error in IE: '<b>Check your Internet connection</b>'.<br />
<br />
<b>The proxy!</b> I forgot all about it, and hadn't started it because I didn't have the VPN connection up, and without the VPN, the proxy was of little use... I only use the proxy for tunneling to the one internal network that I access via VPN by use of a pac (proxy auto-config) file.<br />
<br />
However, I had set IE in the VM to use the proxy, not for access, but for timing analysis by checking the squid access log. And then I left the configuration in, and got hit when AnyConnect tried to next connect.<br />
<br />
I wouldn't expect it to use the proxy, but there is probably an initial connect check that it does over TCP.</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-85298878863007212013-05-25T12:58:00.002-04:002013-05-25T12:58:42.296-04:00keyboard shortcuts: Disable front row (OSX), NetBeans<div dir="ltr" style="text-align: left;" trbidi="on">
I use the keyboard far more than mouse.. <br />
<ul>
<li>cmd-tab to switch applications</li>
<li>cmd-` for windows, <a href="http://bit.ly/aquamacs">Aquamacs</a> buffers</li>
<li>ctrl-tab for tabs in browsers, buffers in NetBeans</li>
</ul>
Occasionally I miss and hit cmd-ESC, <a href="http://gilesbowkett.blogspot.com/2008/03/os-x-disable-front-row-keyboard.html">which does the worst thing</a> -- stops my music, fades everything to black,<br />
and then brings up the front row icon. Luckily hitting ESC again makes it go away, but it's an annoying interruption. Every time I say "I have to disable that..." and put it off.<br />
<br />
No more.<br />
<br />
Cmd-space keyboard to access System Preferences.<br />
The shortcuts come up, Front Row is the fourth icon for me;<br />
select, click checkbox on the right,<br />
done!<br />
<br />
Now, cmd-ESC is the same as ESC.. I thought there would be a good shortcut to use this for, but I can't think of a better one.<br />
<br />
Links:<br />
<ul>
<li><h1>
<span style="font-size: small;"><a href="http://support.apple.com/kb/ht1343">Mac OS X keyboard shortcuts</a> - <strong>Article:</strong> HT1343 (<strong>last Modified:</strong> June 25, 2010)</span><strong></strong></h1>
</li>
<li><h3 class="post-title entry-title">
<a href="http://netbeanside61.blogspot.com/2008/04/top-10-netbeans-ide-keyboard-shortcuts.html" style="font-weight: normal;">Top 10 NetBeans IDE Keyboard Shortcuts I use the most</a> <br style="font-weight: normal;" /><span style="font-weight: normal;">a little old, but has some ideas. </span></h3>
</li>
</ul>
Any other favorite shortcuts ? <br />
New tools?<br />
Been meaning to look into ubiquity...<br />
<br />
<br />
<br />
<div class="zemanta-related">
<h6 class="zemanta-related-title" style="font-size: 1em; margin: 1em 0pt 0pt;">
Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://maketecheasier.com/control-itunes-using-custom-keyboard-shortcuts/2010/08/30">How to Control iTunes Using Custom Keyboard Shortcuts</a> (maketecheasier.com)</li>
<li class="zemanta-article-ul-li"><a href="http://tantek.com/2010/242/b1/keyboard-shortcut-open-mac-system-preferences">Keyboard Shortcut to Open Mac OS X System Preferences</a> (tantek.com)</li>
<li class="zemanta-article-ul-li"><a href="http://maketecheasier.com/manage-touchpad-avoid-typing-errors/2010/09/03">How to Manage Your Touchpad and Avoid Unnecessary Typing Errors</a> (maketecheasier.com)</li>
<li class="zemanta-article-ul-li"><a href="http://www.makeuseof.com/tag/learn-touch-typing-improve-skills-senselang/">Use Sense-Lang To Learn Touch Typing & Improve Typing Skills</a> (makeuseof.com)</li>
<li class="zemanta-article-ul-li"><a href="http://platform.netbeans.org/tutorials/nbm-test.html">imabonehead: NetBeans Platform Testing Tutorial</a> (platform.netbeans.org)</li>
</ul>
</div>
<div class="zemanta-pixie" style="height: 15px; margin-top: 10px;">
<a class="zemanta-pixie-a" href="http://www.zemanta.com/" title="Enhanced by Zemanta"><img alt="Enhanced by Zemanta" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=0a87c932-cb60-415c-a7c6-152c91a7d6de" style="border: medium none; float: right;" /></a></div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-88415348341625811232013-05-25T12:39:00.001-04:002013-05-25T12:39:58.285-04:00org-mode says: Warning: Bug in outline-mode: it forgets to call `run-mode-hooks'<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; border: 0px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<span style="color: #222222; font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 12.800000190734863px;"><b>Warning: Bug in outline-mode: it forgets to call `run-mode-hooks'</b></span></span></div>
<div style="background-color: white; border: 0px; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 12.800000190734863px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
I just encountered this error when visiting a .org file and finding I was in outline-mode.<br />
No changes to any of my init files... M-x org-mode gave the same error.</div>
<div style="background-color: white; border: 0px; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 12.800000190734863px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
This error is pretty uncommon apparently, and only occurs under the conditions as listed here:<br />
<a href="https://groups.google.com/group/aquamacs-devel/tree/browse_frm/month/2012-01/5da332defbd6a9f0?rnum=211&_done=/group/aquamacs-devel/browse_frm/month/2012-01?&pli=1">https://groups.google.com/group/aquamacs-devel/tree/browse_frm/month/2012-01/5da332defbd6a9f0?rnum=211&_done=/group/aquamacs-devel/browse_frm/month/2012-01?&pli=1</a></div>
<blockquote>
<div style="border: 0px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><span style="color: blue;"><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">In aquamacs 2.4, I found that if I opened a remote file using tramp, and then open an org file either locally or remotely, org mode will fail to start. If I restart the org mode, aquamacs will report that certain features from outline mode are missing.</span></span>
</span></span></div>
<div style="border: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<span style="background-color: white; color: blue; font-size: x-small;">The problem can be fixed if one reload the outline library again by hand using M-x load-library: outline, and then restart org mode.</span></div>
<div style="border: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<span style="background-color: white; color: blue; font-size: x-small;">It always happens when tramp is loaded before the org-mode. If a org file is opened before tramp, then subsequent tramp does not break the org mode.</span></div>
</blockquote>
<div style="background-color: white; border: 0px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: left; vertical-align: baseline;">
<span style="color: #222222; font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 12.800000190734863px;">So, there's the cause:</span></span></div>
<ul style="text-align: left;">
<li><span style="color: #222222; font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 12.727272033691406px;">Calling tramp before org-mode<br />(apparently only loads certain pieces of code that makes org-mode think outline is loaded, though it isn't)</span></span></li>
</ul>
<div>
<span style="color: #222222; font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 12.727272033691406px;">And the solution:</span></span><br />
<ul style="text-align: left;"><span style="color: #222222; font-family: Arial, Helvetica, sans-serif;">
<li><span style="font-size: 12.727272033691406px;">M-x load-library <ret> outline <ret></ret></ret></span></li>
<li><span style="font-size: 12.727272033691406px;">M-x org-mode, or normal-mode, or visit the .org file again</span></li>
</span></ul>
<span style="color: #222222; font-family: Arial, Helvetica, sans-serif;">
</span>
<div>
<span style="color: #222222; font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 12.727272033691406px;">Is it fixed in later tramp / orgmode / aquamacs distribution ?</span></span></div>
<span style="color: #222222; font-family: Arial, Helvetica, sans-serif;">
</span></div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-449896318612912082012-12-02T14:51:00.001-05:002013-05-25T12:55:01.097-04:00Comparing computer benchmarks<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="x-sender" style="padding-right: 11px; padding-top: 3px; text-rendering: optimizelegibility; word-wrap: break-word;">
<i><span style="font-size: x-small;">[this post was previously mangled into markup garbage somehow.]</span></i><br />
<br />
Get the geekbench program--</div>
<div class="x-time" style="-webkit-box-shadow: rgba(0, 0, 0, 0.496094) 0px 1px 4px; background-color: rgba(255, 255, 255, 0.796875); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; color: rgba(16, 16, 16, 0.796875); float: right; font-weight: bold; margin-left: 4px; margin-right: -8px; margin-top: 0px; padding-bottom: 1px; padding-left: 4px; padding-right: 5px; padding-top: 0px; text-rendering: optimizelegibility; visibility: hidden; word-wrap: break-word;" title="02 Dec 2012">
</div>
<div class="x-text" style="line-height: 1.3em; padding-bottom: 1px; text-rendering: optimizelegibility; word-wrap: break-word;">
this will give you some kind of performance number for your laptop/desktop/server:<br />
<a href="http://www.primatelabs.com/geekbench/" style="color: #0033cc; text-decoration: underline; text-rendering: optimizelegibility; word-wrap: break-word;" title="http://www.primatelabs.com/geekbench/">http://www.primatelabs.com/geekbench/</a>
<br />
<br />
Also you can view results others have posted here: <a href="http://browser.primatelabs.com/">http://browser.primatelabs.com/</a><br />
(search by model, processor type, etc. and view the range of results expected.<br />
<br />
This type of metric is much more meaningful for comparisons than 'GigaHertz' -- processor speed.<br />Going simply by CPU speed is like comparing a sports car to a semi-trailer truck.<br />Your specific needs will depend on whether you just want to get somewhere fast, or have a lot of stuff to haul.</div>
<div class="x-time" style="-webkit-box-shadow: rgba(0, 0, 0, 0.496094) 0px 1px 4px; background-color: rgba(255, 255, 255, 0.796875); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; color: rgba(16, 16, 16, 0.796875); float: right; font-weight: bold; margin-left: 4px; margin-right: -8px; margin-top: 0px; padding-bottom: 1px; padding-left: 4px; padding-right: 5px; padding-top: 0px; text-rendering: optimizelegibility; visibility: hidden; word-wrap: break-word;" title="02 Dec 2012">
</div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-67038407321063200112012-01-22T14:16:00.002-05:002012-01-22T14:16:34.622-05:00tab sweep, 2012.01.22 part 1<div dir="ltr" style="text-align: left;" trbidi="on">
I had the idea of doing a tab sweep before I ever heard it called that, but having found this name, I might as well use it. Sharing is better than not (unless it's crap(), links are the spider silk that holds the web together, and writing a one-line review will help me remember it better than simply adding it to another bookmark folder etc. And it may inspire some discussion and knowledge sharing, or at least serendipitous clicking...<br />
<br />
<ul style="text-align: left;">
<li><a href="http://www.codemaps.org/">http://www.codemaps.org/</a> -- apparently has been around for a couple years; there are some diagrams of open source packages like Lucene... okay, on closer look it appears this is mostly(?) advertisement for an eclipse plugin from Architexa that does UML diagramming for mostly java. Which is fine. But like other academic spin-offs, it is unclear how much backing and (business) drive behind, balanced against how much more useful it might be if it were given away, and how much more it might be adopted.<br />And the related business issues: "How do we make money if we give it away?" ".. but then N-times more people will use it, a small portion will result in sales/licensing/training/customization" etc.<br />There is some paper on something called 'codemaps' that might be a visual studio plugin..<br />As with mindmaps, UML diagrams seem to have a useful life only during part of the learning curve; after you are familiar enough with the terrain, the map is no longer useful. Or you need a different, showing different information, at different scales.<br />I am also interest in 'active' maps -- I'm not sure I've seen a UML diagram displaying runtime activity or stats, except maybe special purpose in some academic papers.<br />For UML diagramming while learning code / class relationships and similarities, <br /><a href="http://argouml.tigris.org/">ArgoUML</a> is pretty nice. Read in your source files and then you can drag-n-drop classes of interest and it automatically adds the relationships. Hmm.. how to handle updates?<br /><a href="http://www.umlgraph.org/">UMLGraph</a> is free and can be automated; there is an ant task that can add diagrams to your javadoc too, but since it's really a diagram specification, and GraphViz handles the drawing, it is not tied to any language or tools or formats..<br /><br />I like the concept of being able to 'visualize software' but haven't seen the magic bullet yet..<br /></li>
<li><a href="http://cyberlaw.stanford.edu/node/6740">Tracking the Trackers: Where Everybody Knows Your Username</a> from Stanford Law School<br />not particularly new for me, because I have been at one of the top online ad companies, and took part in design of a project that would receive user info from the ISP (income, demographic profiles) and join it with other information providers than had credit scores, household buying info, etc.<br />There are a number of links and tools there to follow, and also a well-described methodology. I am somewhat inspired against to work on a rule-based rewriting proxy that can persist my browsing history or be use for spidering / heuristic search, and also answer / collect info on topics like<br /> - how many sites use X (where X is some package, framework, software version, hosting provider, technology feature, etc.)<br /> - what ad networks does this site use, and the reverse query<br /> - what is this cookie format? how is it decoded? and, (if multiple users shared this) how does it vary per user? can it be hacked?<br /> - how often is this (html) tag actually used? who uses it (a package, a tool generator, a design firm)? <br /> - trend analysis (when did this term first appear / reach some threshold), latent semantic tools<br /> - general IR capabilities, because information is easier to retrieve when you have information.<br /><br />Something like <a href="http://muffin.doit.org/">muffin</a> (a customizable proxy with plugin architecture), db storage, a simple rule base handles a lot of this..</li>
</ul>
.. that was only like 2.5 tabs I had; to be continued. </div>toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-46074296723978403472011-03-23T13:54:00.001-04:002011-03-23T13:54:20.862-04:00NeoOffice / OpenOffice "Error saving the document " -- Can't save file!You've been working on your document, maybe go away for a while, come back and realize you haven't saved it. &nbsp;But when you try to save,<br />an error dialog comes up saying "Write Error", with no additional information...<br /><br />You try changing the file name, saving to a different directory, checking disk space.. &nbsp;everything looks fine, but it won't save. &nbsp;What to do? &nbsp;Quit it, and have faith that the 'Recover files' dialog will bring it back?<br />Copy your document, or at least the changes (f you can), into textedit or another program?<br /><br />To encounter this situation&nbsp;is disconcerting, to say the least.<br /><br />After a little searching,<br />NeoOffice bug #<br />http://bugzilla.neooffice.org/bug.php?op=show&amp;bugid=3293<br><br /><br />Easy solution:<br />from the existing document,<br />select all and copy<br />cmd-N (or on windows: ctrl-N) to make a new window.<br />paste -- you now have a copy of your document.<br />Save this new one.<br /><br />For me, these errors happened after starting NeoOffice a few days ago (12) and then deciding to save some 'untitled' documents I had created and entered minor amounts of data/text into. &nbsp;They hadn't been saved previously, and had been opened for several days. &nbsp;The bug says this:<br /><br />"The key thing to do to avoid this bug is to not keep and .od* document <br />open for more than a day or two. If you periodically save a file, close <br />it, and reopen it, you can avoid this bug."<br /><br />Another note is "Update: in this instance, with Writer giving the error, I was able to Save As in ANY format EXCEPT .sxw, .stw, .odt, and .ott."<br /><br />Another link mentions something about tmp files, which on the mac seem to be somewhere under a path like&nbsp;<br />$ set | grep /var/folder<br />TMPDIR=/var/folders/GX/GXRi3TKjExSdAlvXgP45k++++TI/-Tmp-/<br />some OS cleanup process could be removing files from here. &nbsp;<br />I've not tried tracing the process&nbsp;(ptrace/strace)&nbsp;since I have a workaround, but it seems plausible enough.<br /><br />apparently this has been going onsince 2006:<br />http://openoffice.org/bugzilla/show_bug.cgi?id=69993<br>toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com1tag:blogger.com,1999:blog-1195794788257914533.post-48279768211515228812010-12-28T13:06:00.006-05:002010-12-28T17:06:13.485-05:00Selling your old electronics<span class="zemanta-img separator" style="clear: right;"><a href="http://www.crunchbase.com/product/iphone" style="margin-left: 1em; margin-right: 1em; display: block; float: right; clear: right;"><img src="http://www.crunchbase.com/assets/images/resized/0001/9797/19797v1-max-250x250.jpg" alt="Image representing iPhone as depicted in Crunc..." style="font-size: 0.8em; border: medium none;" height="195" width="250" /></a><span class="zemanta-img-attribution" style="margin-left: 1em; margin-right: 1em; clear: both; float: right; width: 250px;">Image via <a href="http://www.crunchbase.com/">CrunchBase</a></span></span>This is something I really never consider, while I have some friends that do it regularly, always upgrading / buying new devices.<br /><br />My reasons not to:<br /><ul><li>lazy</li><li>seems like too much trouble</li><li>it works now, why bother?</li><li>it's too much trouble to change</li><li>I guess I am content "enough" -- I don't have device lust, and seem to care less and less about new things coming out.</li><li>not spending money == good.<br /></li></ul>Sounds like good reasons to me. On the other hand, if you've "gotten your money's worth" (for some value of worth), and the device still has <a class="zem_slink" href="http://en.wikipedia.org/wiki/Market_value" title="Market value" rel="wikipedia">market value</a>.<br /><br />But enough about me.<br /><br />I came across this (old) random article "<a href="http://bostinnovation.com/2010/06/21/where-to-sell-your-iphone-3g-gazelle-vs-nextworth/">Where to Sell Your iPhone 3G: </a>", which had like to a number of sites. Check out my iPhone 3G, now over 3 years old...<br /><br />parameters: near perfect condition, no scratches, all accessories +<br /><ul><li>http://www.selliphoneforcash.com/ - $103</li><li>http://www.buybackworld.com/ - $104</li><li>http://cexchange.com/online/home/index.rails - $97 or $115 if I call it excellent..</li><li>http://takemymac.com/ -- too many questions.. ok, should get email in 48hours</li><li>http://www.techtwurl.com/ - $110</li><li>http://www.yourenew.com/ - 85$</li></ul>Note that all of these (except for the first?) deal with other devices besides just iPhones.<br /><br />For those that think trading in your old thing for something newer is green, or trading in your land boat for a Prius or other hybrid -- it's not. It takes a huge amount of energy to create those new devices. You won't get to the break-even point until you drive 100000 miles or so.<br /><br />Of course, re-use is better than re-cycle, is better than throwing away,<br />but how do we get closer to understanding the true cost/value of a thing ?<br /><br /><span style="font-style: italic;font-size:78%;" >.. testing zemanta..</span><br /><div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://www.zemanta.com/" title="Enhanced by Zemanta"><img style="border: medium none; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=480a3cab-5492-4711-981c-9abf1c69c5a6" alt="Enhanced by Zemanta" /></a></div>toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-26309828560873237312010-10-14T13:28:00.006-04:002010-10-14T17:22:02.990-04:00Cygwin: Update your packages / Install a new one in less than 5 minutes<span style="font-size:78%;">[what is cygwin? like unix for windows. a better shell and command line.]</span><br />Actually, it's the same way you _install cygwin_ ..<br />Just faster because you don't have to download as much.<br /><br />If you're installing cygwin for the first time, installing a single missing package,<br />or updating your install to the latest version, it's the same.<br /><ol><li>Run cygwin's <span style="font-weight: bold;">setup.exe</span> -- the same one you used to install cygwin.<br />This took me 2 minutes, because I couldn't remember where I put it.<br /><span style="font-weight: bold;">Better</span>: just go to <a href="http://www.cygwin.com/">cygwin.com</a> and click the <a href="http://www.cygwin.com/setup.exe"><img src="http://www.cygwin.com/cygwin-icon.gif" alt="" border="0" height="28" width="28" /> <span style="">Install or update Cygwin<b> now!</b></span></a> link and you'll have the latest installer.</li><li>click, click, click, just click through, all your previous settings were saved.<br />List of mirrors is downloaded<br />..hang?<br />Pick a new mirror if you want. I used to think http: servers provided better downloads, but now I think they just hang more often. Use http: only if ftp: doesn't work for you (e.g. problems with ftp because you're behind a firewall).<br /></li><li>The list of packages is downloaded. This should be pretty quick; if you don't see any activity within 15 seconds or so, cancel and go back to 1.<br /></li><li>Select / search for the package(s) you want. Just type in the search area (e.g., cygrun) to find the package and select for install.<br />(? if you don't know the package name.. where is a search for files ?)<br />old ones are updated automatically ?<br /></li><li>Click next to install. All the package(s) are downloaded and installed.<br />If it hangs, cancel and go back to 1. Maybe try a new mirror?<br /></li><li>"Can't install <package>, file is in use" -- this can happen if<br /><ol><li>you are running the .exe; for example, bash.exe and you have a bash.exe window open</li><li>you are updating a .dll which is in use by your exe or service<br /></li><li>service is running, such as <span style="font-weight: bold;">sshd</span>. Do this:</li></ol><ul><li>open a cmd window</li><li>find the service(s) with the following command:<br /><span style="font-weight: bold;font-family:courier new;" >net start | findstr /i cyg</span><br />the service(s) names are printed<br /></li><li>stop the service with<br /><span style="font-weight: bold;font-family:courier new;" >net stop "<a class="zem_slink" href="http://www.cygwin.com/" title="Cygwin" rel="homepage">CYGWIN</a> sshd"</span><br />replace with the name you have. (? other services besides CYGWIN ?)</li><li>click <span style="font-weight: bold;">Retry</span> on the dialog warning box</li><li>It should continue now. When you get to the end, remember to restart with<br /><span style="font-weight: bold;font-family:courier new;" >net start "CYGWIN sshd"</span><br />This is a generally useful way to stop/start services easily from the command line or from a script. If you prefer the slow way of clicking, you can run services.msc</li></ul></package></li><li>Finished!<br />after updating my 1.5.x to 1.7.x, I get this for the cygrund package:<br /><span style="font-weight: bold;">Postinstall script errors</span><br />Package: No package<br /> passwd-grp.sh exit code 1<br />I got something like this when I first updated, but I haven't noticed any problem.<br /></li></ol>Actually, it could take more than 5 minutes, if there are slow downloads.<br />Once you get the hand of it though, it will probably only take two minutes to grab a missing package.<br /><br />Because updating/adding a package is so easy, the first time you should click through and accept the defaults, then later adding missing features. I used to spend a lot of time going through all the packages, trying to decide if someday it might be useful. This just takes up more space, and more time later when upgrading.<br /><br /> <div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://www.zemanta.com/" title="Enhanced by Zemanta"><img style="border: medium none; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=567cb818-f91c-4a7a-a38a-894436612caf" alt="Enhanced by Zemanta" /></a></div>toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com1tag:blogger.com,1999:blog-1195794788257914533.post-4042778190606775672010-10-05T17:57:00.004-04:002013-05-25T12:57:38.339-04:00OSX: Constant disk activity after attaching a disk to Mac<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: 180%; font-weight: bold;">Mac</span><br />
<span style="font-size: 85%;">(windows and linux, keep reading)</span><br />
<br />
What it probably is: spotlight indexing.<br />
If you're just hooking up a drive to copy some data or look for something, then this can be a hindrance to your work.<br />
<br />
Verify that it is this process with:<br />
sudo fs_usage<br />
<br />
this will show all I/O activity, which will be a lot because it will include every line of text coming out to the terminal as well. Filter it with something like<br />
<br />
sudo fs_usage | egrep -v 'screen|grep|head' | head -20<br />
<br />
If you see <span style="font-weight: bold;">mdworker</span>, that's spotlight indexing going on. <br />
If you see <span style="font-weight: bold;">backupd</span>, that's Time Machine (but you may have noticed the spinning icon in the menu bar).<br />
<br />
Turn off indexing with:<br />
mdutil -i off /Volumes/mountname<br />
<br />
It may take 30 seconds or so (depending how busy it is) before you see<br />
Indexing disabled.<br />
<br />
You can turn it back on later by specifying 'on' instead of 'off'.<br />
<br />
There are many other usages; you can use fs_usage to find what configuration or plist file(s) a program is using, where your data is going to on disk, etc.<br />
<h1>
</h1>
Here's a MacWorld article: <a href="http://www.macworld.com/article/46516/2005/08/filesystemusage.html">Watch file system activity in real time</a><br />
<br />
<span style="font-size: 180%; font-weight: bold;">Windows</span><br />
On windows, get fsmon; it's one of the sysinternals tools.<br />
regmon will do the same thing for registry accesses.<br />
<br />
I've used fsmon to discover trojan processes before.<br />
Windows == virus.<br />
<br />
<span style="font-size: 180%; font-weight: bold;">Linux</span><br />
atop is supposed to come with ubuntu. <br />
I don't think it gives specific paths in output, but once you have the pid you can connect with strace and just look at the IO syscalls, or use lsof to find which files are currently in use.<br />
<br />
<br />
<br />
any other tools of note?<br />
<br />
<br />
<div class="zemanta-pixie" style="height: 15px; margin-top: 10px;">
<a class="zemanta-pixie-a" href="http://www.zemanta.com/" title="Enhanced by Zemanta"><img alt="Enhanced by Zemanta" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=a35a5199-cdb2-4fab-8052-a89b824365e1" style="border: medium none; float: right;" /></a></div>
</div>
toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0tag:blogger.com,1999:blog-1195794788257914533.post-84422533523600571152010-09-17T15:39:00.005-04:002010-09-17T18:45:05.581-04:00Websphere portal server and Lotus Web Content Management performance tuning tips<span class="zemanta-img separator" style="clear: right;"><a href="http://en.wikipedia.org/wiki/File:Plunge_pool.png" style="margin-left: 1em; margin-right: 1em; display: block; float: right; clear: right;"><img src="http://upload.wikimedia.org/wikipedia/en/thumb/7/7c/Plunge_pool.png/300px-Plunge_pool.png" alt="an illustration of a plunge pool" style="font-size: 0.8em; border: medium none;" height="250" width="300" /></a><span class="zemanta-img-attribution" style="margin-left: 1em; margin-right: 1em; clear: both; float: right; width: 300px;">Image via <a href="http://en.wikipedia.org/wiki/File:Plunge_pool.png">Wikipedia</a></span></span>If you have had the pleasure to install and set up a WebSphere Portal environment, you know that sometimes it can be a big, fat bloated piece of something you'd expect from Redmond. <br /><br />You will probably see the biggest increase from the <span style="font-weight: bold;">Base portal tuning</span> recommendations.<br />Give it as much memory as you can spare and increase the <a class="zem_slink" href="http://en.wikipedia.org/wiki/Thread_pool_pattern" title="Thread pool pattern" rel="wikipedia">thread pool</a> size -- you should see performance increase just from this. (If on Windows, you can't go above 1.5G, but for a server Windows should always be your last choice.)<br /><br />After the base portal tuning, try again, then start to do some performance monitoring. <br />If you're a big WCM user, check the caches here and make them bigger.<br /><br /><br />Links:<br /><ul><li>a starting point is <a href="http://bit.ly/swg27007059">IBM doc#swg27007059</a>,<br />IBM WebSphere Portal Performance Troubleshooting Guide,<br />it contains basic generic troubleshooting methodology. You may want a methodology like this for your manager or client.. Also a step-by-step guide to the PMI / Tivoli Performance Viewer -- these are definitely worth checking to get basic measurements of your server. </li></ul><ul><li><a href="http://bit.ly/93Valk">WebSphere Portal and Lotus Web Content Management 6.1.x Performance Tuning Guide<br /></a>Broken out into portal, WCM, database, web, etc components. Has specific parameters to change, but you need to know what you're doing.<br />This document is also somewhere on the IBM side, but the lotus wiki versions allow for updates. <br /><span style="font-style: italic;">(I have even corrected some of their documents.. if only they would conform to the formatting conventions)</span><br /></li><li>This looks good, but I only found it later, after I did my tuning..:<br /><a href="http://bit.ly/cBThyc">WebSphere tuning for the impatient: How to get 80% of the performance improvement with 20% of the effort</a><h1></h1></li></ul>Patches (aka fixpacks) sometimes fix performance issues. I haven't encountered one specifically, but it has been known to happen.<br /><br />...<br /><span style="font-style: italic;">Also testing Zemanta with this post.. the included image is totally unrelated.</span><br /><span style="font-style: italic;">Actually, I said 'pool' -- I think that's where it came from, and you have to admit it looks cooler than a 'websphere'.</span><br /> <div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://www.zemanta.com/" title="Enhanced by Zemanta"><img style="border: medium none; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=083cf555-2dee-49f4-b86a-129f97648a55" alt="Enhanced by Zemanta" /></a></div>toddhttp://www.blogger.com/profile/15102634550979910775noreply@blogger.com0