Sunday, February 10, 2013

Mac OS X error code -36

While drag-copying my iTunes Library to an external hard drive:

"The Finder can't complete the operation because some data in "1987 Trains.mp4" can't be read or written.  (Error code -36)"

See this discussion:
https://discussions.apple.com/message/10770701#10770701


And this quote within that discussion:
"if deleting ..DSStore works you may have found the source of the problem here. there were a LOT of the posts about people getting error -36 when copying folders from FAT drives and AFAIK, nobody could figure out the reason."


Also see:
http://www.macyourself.com/2010/01/07/solution-to-finder-error-code-36-in-10-6-when-copying-folders/


Wednesday, February 6, 2013

Architectural plans for Model Railroad buildings

This site has some great, free plans for a wide variety of structures.

http://www.ag.ndsu.edu/extension-aben/buildingplans/miscellaneous

for example, this plan is for a 6 by 12 roadside stand. Something every 
layout could use:

http://www.ag.ndsu.edu/aben-plans/5699.pdf

Tuesday, January 29, 2013

ServiceReference problem in VS 2010

This MIGHT be the source of my problem:

NEVER NAME A CLASS THE SAME AS A NAMESPACE--IF YOU'RE GOING TO ADD A SERVICE REFERENCE. 

Recommendation: Always append the string "_Namespace" or "_NS" to the DefaultNamespace in Properties-->Application whenever you create a new VS Project.  This will avoid a particularly NASTY bug (or feature) of VS.

Otherwise VS will create a ServiceReference that WON'T compile.

obsolete (as of 11/14/2013) web-link:
http://www.gmontrone.com/post/NET-Compile-Issues-with-Service-References.aspx

Thursday, January 3, 2013

Windows7 Explorer causes Excel2007 to think file is locked


Quoting from website:

We were having this problem with several users from remote locations accessing Excel files on a file server.  The clients are Windows 7 Pro systems connecting to a 2003 R2 server. I suspect this would also occur with 2008/2008r2 servers, but I have not tested it.  It does not occur with XP clients. The file was getting a lock on it even though it was not being opened.  The file lock would last 10-20 seconds before being released. There are three things that contribute to this problem, all of them Windows Explorer related:
  1. Selecting the file in Explorer -just highlight it without opening
  2. Hovering over the filename so that the pop-up file information box was displaying
  3. Using the Preview Pane in Explorer
To fix the problems:
  1. Turn off the Details Pane shown at the bottom of Windows Explorer.  Go to Organize -> Layout -> Details Pane.  That fixes the first problem.
  2. Turn off “Show pop-up description for folder and desktop items”  Click on Tools -> Folder Options.  In the box that opens up, click on the View tab.  Scroll down the list to “Show pop-up description for folder and desktop items” and clear the checkbox and then click OK.  This fixes the second problem.
  3. Turn off Preview Pane.  Go to Organize -> Layout -> Preview Pane. This fixes number 3. 
The preview pane is not on by default in the "Details" view, but the other two options are on by default.  The file locks are created when Explorer is gathering file information like size, author, modified date, etc..  I suspect that it would also do this with any other file type, but I have not tested that situation either.  For those of you in a managed environment (I guess that would be anyone reading this since the likelihood of home users having this problem would be approaching zero), I am going to use regmon to see what registry keys are modified by the changes.  I will post them so that you can deploy them to your environment if I find them.


Thursday, July 14, 2011

SqlServer date functions

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=64755

Example:
select 
 distinct PLANT_ID, 
 userid,
 update_id,
 convert(varchar(10),dateadd(dd,datediff(dd,0,updateDate_Stamp),0),101) 
  as PO_date
from inventory..inv_log
where plant_id = 'HR' 
 and type = 'T' 
 and updateDate_Stamp > '05/01/2011' 
 and userID like '%SLAM%'
order by 1,2,3