-{ a hewer of maps }-

Logon failure: the target account name is incorrect

Seen when trying to navigate to \\computer-name from windows7 where the target is an XP virtual machine, under vmware workstation. Both machines are members of an Active Directory domain. The g'oracle indicates this message has to do with AD replication failure and similar. Most of the hits have to with server configuration though, not workstations.

Rejoining the workstation to the domain made the error message go away, but did not accomplish the original goal: accessing the vm file system from the host while running. 

That's curious: the guest vm in NAT network mode can authenticate via AD, even though it's ip is local to the host (192....etc).

In any case the fix continue.

Determine Windows Version

Who would have thought a simple question like "what version of windows am I running under?" would be so complicated?

This stub retrieves the number as a string. A complete working script which parses ver and responds accordingly is attached as winver2.cmd. For practical purposes you might be better off with Simon Sheppard's approach.

~~~~ {.prettyprint} @echo off for /f "tokens=2 delims=[]" %%x in ('ver') do set WINVER=%%x set WINVER=%WINVER:Version =% echo CMD version is %winver% ~~~~

A one liner for the major number (reg.exe not always available, XP and newer I think):

reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion
References
Windows Version Table

Scraped from http://en.wikipedia.org/wiki/Microso...ne_of_releases

Product name

Current Version / Build

Windows 1.01

1.01

Windows 2.03

2.03

Windows 2.10

2.10

Windows 2.11

2.11

Windows 3.0

3.0

Windows 3.1x

3.1

Windows For Workgroups 3.1

3.1

Windows NT 3.1

NT continue.

CALL ss64.com for windows scripting help

Once again I find myself a slightly better Windows script writer thanks the excellent reference pages provided by ss64.com. The particular situation I was stumped by, is wanting to be able to set a variable to the contents of another variable rather than the variable name. The answer? Use 3 percent signs in a loop.

:: Notice that to evaluate the contents of %pc1%
:: requires triple%’ symbols i.e CALL SET _pc_name=%%%_pc_name%%%

This is one CALL I’m very happy to have made.

What was my goal? To estimate the number of indexable documents in use on our shared departmental fileserver, in order to get an idea of what size of Google Mini or search continue.

Fix Start Time rather than the Menu

((In response to: Choices = Headaches and Windows Shutdown Crapfest))

ahem, rather than fixing the Shutdown feature, uh… menu I mean, how about fixing the real problem: my circa 2004 computer is more than 5 times as slow as my 1994 computer. In 1994 I pressed the power button and within 30 seconds I could get to work typing a letter, playing a game or whatever. Today I press the power button, go to the bathroom, get a fresh cup of coffee and THEN sit down to work. (150s to login prompt, plus 55s to point of being able to open the start menu). If I was in to computing in continue.

desktop search saved my butt this time, but what about the next?

This morning I had to dig up a series of emails and a script from almost 2 years ago in order to answer questions about what I’d exactly I’d given to someone (it was a digital elevation model mosaic). A 3rd party needed to know the specific datatype and precision of the model. I couldn’t remember, I’d long since deleted the mosiac, and since it was only a 1 day project which didn’t require learning or research I didn’t keep any notes.

After spending some time coming empty in the filesystem and not finding the email exchange I fired up Google Desktop Search and located the specific emails and continue.

(not quite) editing PDFs using open source

Our extended health insurance company helpfully profides pdf forms with my name, client #, etc. pre-filled for easy printing. Unfortunately there are a number of fields which will aren’t likely to change, like my phone number and the names of my kids, which are not filled in. I’m lazy, so I figured it was worth spending an hour figuring out how to save 1 minute of no-thought grunt work every time I need to fill out a form.

I found an article extolling the virtures of flpsed, a pdf “annotator” for linux. Great, that sounds perfect! Flpsed is not listed in the cygwin package repository but a little bit of continue.

Fixing Mountain Shadows

This was an attempt to use some photographic image processing techniques^1^ to bring back some detail in the regions of mountain shadows in a Landsat7 composite image. It didn’t work but I learned a lot in the process. It could be useful in future with other data which is has not lost so much to white and black shadows.

Original on left while right shows result of contrast mask combined with grain merge selected in the layer Mode. It almost works, but not enough for the project I was researching for. Below, detail view of grain merge result.

   

Comments {#commentz}

matt wilkie wrote:

just found the PHATCH project, http://photobatch.wikidot.com/, which is python alternative to continue.

Resolution Bumping Shaded Relief

As Tom Patterson describes in “Resolution bumping GTOPO30 in Photoshop“, using a too-detailed shaded relief image can actually yield a map which is less legible. In the same article Patterson also demonstrates how to counteract this problem. He says this is something to do to the elevation model and not the shaded relief, but not having a graphics program installed on my machine capable of editing 16 bit images I applied it to the shaded relief instead. The results are good, but I’m itching to try it out properly to see what the difference is when used earlier in the chain. Here is my nutshell re-work of Patterson’s resolution bumping continue.

troubleshooting “gm convert: Postscript delegate failed”

I installed GraphicsMagick-1.3.6-Q16-windows-dll.exe on Windows XP Professional x64 SP2. When I try and convert a pdf to jpeg I get the error “gm convert: Postscript delegate failed”. EPS, PS, PDF are listed with the “gm convert -list delegates” command. I’ve tried with and without Ghostscript (v8.63) in path. The pdf’s I’m trying to convert can be downloaded from ftp://ftp2.cits.rncan.gc.ca/pub/canmatrix2/250k_pdf/, but it’s also happened with simpler documents.

WORKAROUND: In “GraphicsMagick\config\delegates.mgk” hardcode the path to gswin32c.exe by replacing all occurences of “@PSDelegate@” with “C:\local\gs\current\bin\gswin32c.exe” (change path according to local environment of course). This is enough to let me keep working, but it would be nice to solve the root of the problem so upgrades continue.

VMware server stops working with “general error”

If all of a sudden your vmware machines stop powering on, and the error is an undescriptive “general system error”, check and see if you are using a beta version which has expired.

When intalling vmware server 2 on windows server 2003, if you get an error like “This installation is forbidden by system policy.” even when you are logged in as administrator or have used “r-click > Run as… > Adminstrator” you may need to create a security policy. It looks like the install aborts if there are no policies at all.\

  1. Click Start -> Control Panel
  2. Open Administrative Tools
  3. Open Local Security Settings
  4. Click Software Restriction Policies

    1. If no software continue.
Previous » « Next