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

Friday, April 15, 2011

SVN - managing users on webfaction's SVN

Managing Users

Subversion users are managed with .htpasswd file in ~/webapps/svn, where svn is the name of the Subversion application.
To add a user or change an existing user’s password:
  1. Open an SSH session.
  2. Switch to the Subversion directory. Enter cd ~/webapps/svn and press Enter.
  3. Enter htpasswd .htpasswd username, where username is the the user, and press Enter. A password prompt appears.
  4. Enter the new password and press Enter.
  5. Reenter the new password and press Enter.
To delete a user:
  1. Open an SSH session.
  2. Switch to the Subversion directory. Enter cd ~/webapps/svn and press Enter.
  3. Enter htpasswd -D .htpasswd username, where username is the the user, and press Enter.

Saturday, March 5, 2011

SonicWall NetExtender for Mac OS X fix for Snow Leopard



TIP: GUI version of Snow Leopard/Net Extender VPN fix
Thursday, March 25, 2010
Don shared an alternative to a previously reported workaround for Snow Leopard problems with SonicWall's NetExtender virtual private network client. The original fix uses Unix commands in Terminal. Don said his workaround accomplishes the same but without the command line:
I also couldn't connect using SonicWall NetExtender v3.5.632 after upgrading my MacBook Pro to Snow Leopard. Since I'm not comfortable with Terminal, and our IT guys were Gone For The Day, I tried Josh Carlson_s tip and Downloaded and installed the latest version of NetExtender from the SonicWALL website using these simple steps:
  1. Open this link: https://sslvpn.demo.sonicwall.com/cgi-bin/welcome
  2. Follow the instructions to demo NetExtender
  3. Click on the NetExtender button (which opens this link: https://sslvpn.demo.sonicwall.com/cgi-bin/portal#)
  4. Follow the instructions and permanently APPROVE the SonicWALL permissions dialogs that pop up
This installed the latest Snow Leopard friendly version of NetExtender (version 4.0.658) which connected to our SSL-VPN NetExtender without having to do anything in Terminal... Much easier!
My suggestion would be to simply this further to three simple steps:
Go directly to this link: https://sslvpn.demo.sonicwall.com/cgi-bin/portal#
Click on the NetExtender button (which opens this link: https://sslvpn.demo.sonicwall.com/cgi-bin/portal#)
Follow the instructions and permanently APPROVE the SonicWALL permissions dialogs that pop up.

From: http://www.macwindows.com/snowleopardVPN.html#090209g