Friday, December 23, 2005

An open letter to Java programmers and Evolutionists:

Evolutionary theory is generally expressed in terms of the principal of Survival of the Fittest. Survival of the fittest, of course, states that the goal of organisms is to survive and thrive.

Our tendency to do the above stated is unfortunate, and is furthermore an indication of our limitated capacity to be precise in our scientific discourse

Survival itself, being a principal of Naturalism and Evolution, clearly supersedes the potentially infinite set of principles that could govern evolution completely by random chance. It’s not that survival IS the goal, or even that survival is SUPPOSED to be the goal, but rather that, because the things that ,by completely random chance, have traits favoring survivability will tend to survive, survival APPEARS to be the goal when processed by the human mind.

Things like goals are constructs of the intellect. The intellect, we are told, has evolved over time in such a way as to aid our survivability. To the extent that the capacity to develop and utilize the concept of a goal has aided our survivability, it should be included in the evolutionary lexicon – BUT TO NO GREATER EXTENT. The concept of goals in a non-incarnate process are present because they are injected into the reality by the observer of the reality, not because they are fundamental to or contained within the nature of the reality.

This rather reminds me of the inversion of control (IoC) design pattern.(AKA Dependency Injection). Thinking of survival as a goal as akin to having object A instantiate object B and then use it’s services. Object B is inextricably linked to object A, because object A is in complete control of object B’s creation, formation, and deletion. So, evolution in this scenario is heavily influenced by the goal of survivability.

IoC states that we are to use a setter method to place a reference to an instance of object B within object A. Therefore, class B is being superimposed on class A by some observing or controlling entity, and class A, while using public methods of class B, has very little control over it from an object lifecycle standpoint. This is akin to the observer (a human scientist) superimposing the goal of survivability on the process of evolution, which has no such goal, knowledge thereof, nor concern there-for.

And, then there’s my firmly held position: You’re all hosed. Do you people have nothing better to do than think? WTF?

Joe

Thursday, December 15, 2005

Wednesday, December 14, 2005

Excellent post concerning wikepedia and open source

Click Title for link...

QUOTE: "Letting the light in is not anarchy. A demand of consensus is not mob rule.
It's the scientific method in action."

Tuesday, December 13, 2005

Dollar General Saves Christmas

A series of unforunate expendatures related primarily to my home and vehicles has led me to a sorry state of affiars. Specifically: of having only $480 to spend this Christmas. I must admit that I'm amaized at how much Christmas $480 WON'T BUY.

If you're like me, you hear $480, and think, "Hey, that's a lot of money."
Au Contraire. In the Christmas scheme of things, $480 is a pittance. It's barely worth mentioning. It's a feeble drop in the gaping maw of a devouring capitalist bucket.

Bless God for Dollar General, which I'd like to think feeds on the detritus of corporate evil as opposed to making executives fat on the blood of the working poor. I was able to buy my children toys which they are going to GENUINELY ENJOY for very little $$$. Niiiiiiiiice. :)

Add to the the 60% off jewelry sale at ShopKo, and I'm good, baby. I'm good.

http://www.lemonysnicket.com/index.cfm
http://www.dollargeneral.com/
http://www.shopko.com/index.jsp

Brilliant - the churn continues

If I have to learn one more way to bit-fiddle , I'm going to bloody-well rampage.

Grrrrrrrrr.

Wednesday, November 16, 2005

Twisted Transistor (KORN)

We're like barbequeue. We're all different meats, but we're smothered in the same sauce.
Yeah.

Sunday, November 13, 2005

Veterans Day

First, we all owe our veterans a big thank-you. I think that the vast majority of people who populate the US would agree to this.

I believe that we also owe our veterans an apology. Americans at large have been so concerned that they not appear unpatriotic or anti-soldier, that we have allowed ourselves to be lead down this descent into Iraqi madness.When did not supporting a war and not supporting our troops become synonymous?I don’t support the war in Iraq precisely BECAUSE I support my friends in uniform.

I understand the invasion of Afghanistan. Sending my friends there to fight and die is a terrible price, but I get it.

Sending my friends to Iraq is WRONG. It’s an irresponsible and evil way to spend PEOPLE.

Defending the position:
Let’s go back in time a bit, to just after 9/11. The US is hot and heavy in Afghanistan, and trying to catch Bin Laden.Even if we assume that Iraq has WMD, it still doesn’t make sense to invade Iraq. Militarily, we are unprepared to take on a second front in the "War on Terror", and it will quite obviousely stretch us WAYYY to thin. (I saw this coming. Why didn’t the “professionals” who are supposed to run things?) More importantly (from a military goals perspective), it will pull troops and resources away from our primary objective, which is the capture of OBL.

I’ve spent the last 8 years or so (still in the context of just after 9/11) listening to George Bush the senior & Colin Powel (much respect to both) expound on all of the really good reasons that they didn’t go all the way to Baghdad in the first place. And you know what? Those reasons still apply.

At best, the invasion of Iraq was incompetence. At worst, it’s the Rich settling personal scores or reaping personal gain with the blood of the poor (again).

Add to that the judgments that we can make in hindsight, and it the whole thing fails to pass any sniff-test you’d like to give it.
I support my friends. I support our troops. This war is Crap.

Monday, November 07, 2005

JAVA on the iSeries

JAVA on the iSeries:
For those who are interested and don't already know, I thought I'd put together some
quick tips for running JAVA on the iSeries.
Step 1: Write a JAVA application. This is done in the same way that you would if
you were going to run your JAVA on your desktop PC.
Step 2: Export your newly created JAVA class(es) to a .jar file.
Step 3: FTP said .jar file (along with any other necessary .jar files) to the iSeries.
Step 4: Run the class in question.

Steps 1 & 2 warrant no elaboration, but steps 3 & 4 bear exploring further.

Elaboration on Step 3:
At some point you're going to want to get your files to the iSeries. How is this
accomplished? Through FTP, baby.
NOTE ON FTP: If you'd like to work with IFS (which makes it easier for working with QSH), the first thing that you want to do after you are logged in is type:
quote site namefmt 1
In doing so, you are telling the FTP session that you are wanting to interact
with the IFS.i

You will next want to set the transfer type to binary. This is done by typing,
rather intuitively, the word binary.


Elaboration on Step 4:
A couple of notes:
1 – there are at least two ways to run JAVA on the iSeries. One is to enter the QShell. This is entered by typing QSH from any command line. You are now, for all practical purposes, working in a UNIX environment. At this point, you can work with JAVA in the same way as you would from any *NIX shell.
The other way is to run the command RUNJVA. Example:RUNJVA CLASS (com.test.Hello) CLASSPATH(‘/test/hello.jar’) where com.test.Hello is the class to execute and is located in /test/hello.jar. I've yet to determine whether or not this method also relieson
i
Excerpt from: http://faq.midrange.com/data/cache/264.html
After you log on, the very first command to use is quote site namefmt 1.
This tells the FTP server on the iSeries to use the IFS naming convention.
By the way, you can still refer to objects in the library system even if
you're in IFS name mode:
/qsys.lib/mylibrary.lib/myfile.file/mymember.mbr
To switch back to library mode, be sure your current directory is in the
library system: cd /qsys.lib/mlibrary.lib Then, you can change back to library
name mode: quote site namefmt 0

Two Words

There are only two words to describe the video Jetsetter by MorningWood.

"Mmmmmm.....Booobiiiiiiies."

I think I shall review it again :)

Are we moving beyond abortion?

It seems that evangelical Christians might be seeing beyond the abortion issue. The question: Will this turn the Republican Party into a better party?
- OR -
Will it see more evangelical Christians defecting to the Dems? Thus, perhaps, turning the Democratic party into a better party as well?

Friday, October 28, 2005

Good Scripting info

In particular, some things I didn't know about the Start command.
Example, when commands need quoted because of spaces or odd characters, you need to include the title parameter in the command.

From cmd.exe, these two work:
Start mailto:"somebody?subject=some%20words%20separated%20by%20spaces&body=Some%20text%20in%20the%20body%20of%20the%20mail&cc=copyPerson&bcc=blindCopyPerson"

start "Mail" "mailto: Joe.Hayes@Fiserv.com?subject=look at this website&body=Hi, I found this website and thought you might like it http://www.geocities.com/wowhtml/"

This one doesn't:
Start mailto:"somebody?subject=some words separated by spaces&body=Some text in the body of the mail&cc=copyPerson&bcc=blindCopyPerson"


I'd like to know the majik behind specifying the window title in example two (that works) that suddenly allows spaces to be parsed correctly.

Wednesday, October 26, 2005

Talking about God With Kids (from Adam Kotsko'a weblog

My eldest daughter is currently in bible quizzing.

Part of me wants to teach her that the things she's learning are just words on a page, suitable for academic endeavor, but no more special than other volumnous works. I want to teach her that the writings about Jesus were done something on the order of 70 years after He died, and may or may not have anything to do with what actually transpired. Part of me wants to teach her to be skeptical and have a sensitive BS detector.

But, I'm afraid to. Why? Because God might smite me? nah - He's got plenty of good reasons to do that now if He wants. Because she might repeat what Dad said to people in my little "community"? Eh - maybe.

Then there's the other part of me; The part of me that prays for here sevral times a day, the part that hopes she is a woman who walks with God, the part that hopes there is a heaven PRECICELY because she exists. That part of me want to teach her that the words of Jesus are beautiful, and that his teachings are truly and without question the way, the truth, and the light. That part of me want to say to her loud and long that there is no question so unfathomable, no insight so unsearchable, no corner of your heart so unreachable as to be beyond the words in red. That part of me longs for her to KNOW Jesus.

But, I'm afraid to. Why? Becuase it might not be true? No, I really think it is. Because maybe Jesus was just some guy and the writers of the Ghospel were trying to carve out a little kingdom? Eh, maybe.


I think I'm mostly afraid of turning her into me - dissillusioned and confused, but not able to completely kick anything to the curb, nor truly able to embrace it. I spend so much time stuck in this bizarre never-never land of "I love Jesus" (I really do) and "I don't beleive in Jesus" (that hurts). I feel a deep sadness that i'm hurting Jesus by not beleiving that he exists as more than 2000 year old skeletal fragments.

I don't even know where to begin pointing out the absurdity...

Why do I find myself in this completely unsatisfactory state of affiars?
20 years of brainwashing and folk-religion?
Some truth that I cannot accept because my intellect is too fininte and my faith too impotent?
Trying to "lean on my own understanding"?
Hmmmmmmmmmm...

Nah. I don't want to do that to her. Just drink the cool-aide, kid. Whichever cool-aide. It all pays the same.

Yikes.

Tuesday, October 25, 2005

Awesome Post

What can I say. Yes, I do feel a lot of those same things at times. May God help us.
Adam, I hope you don't quit blogging and I hope you don't quite being transparent. I've never met anyone so much like me. I've never met you, but you get my meaning ...

American Football Now Makes Sense (link)

funny.

Monday, October 24, 2005

Religions Vs. Science - Everyone's Wrong

Linked is an article by Cenk Uygur about the "big three" religions and their practitioners. It's that standard old "you religions creeps are creepy and science is the only way" schtick.

I distrust anyone who thinks they know all that there is to be known about anything. They clearly have not studied history.

Pitting science against religion is ridiculous. Science has a completely different set of limitations than does religion. Science cannot know what it does not know. Example, science could not have talked about radioactivity before the activities of Mary curie and subsequent inventions of devices that allow us to measure what we cannot otherwise sense. Could it have speculated (hypothesized)? Yes, but it never occurred to anyone to do so. Science cannot comment on faith excepting it finds ways to measure the subject matter.

I'm sure that there currently exists no evidence for a whole host of things that will be discovered and contemplated long after the postings of a bunch of bloggers is in a museum with the Rosetta stone. No, that's giving us too much credit. It will all be sitting on some hard drive that was used by some nerdy history wonk to bash through a window to steal some porn, and we'll have been the first against the wall when the revolution came. :)

I also have a healthy distrust of people who reject the best information that science has to offer (which admittedly may be flawed) because it does not fit with their current world-view (which we need to realize also may be flawed). It should be accepted as it is, the best that science currently has to offer.

No one should abandon their faith because of science. No one should abandon their science because of faith.

Friday, October 21, 2005

My concience

Is guilt reliable?

I just got back from Jeannie Hughes’ blog.  I posted, and linked back to my sight.  Having done so, I feel this pang of guilt about my language, and even some of the content.  I actually considered going back and editing some of it.

The question is, why?  And why did I not before hand?  Or did I, and was I in denial?

It is possible that the Spirit of God is convicting me.  If so:
  1. Why does He convict me of things primarily when I think of other Christians (or people) finding out about it?

  2. Why does He convict me most in the context of conservative (or those who I associate with a conservative bent in my own mind) Christians?

Perhaps the mechanism that He uses has something to do with other human beings.

Now the ugly part…

I’ve been noticing lately that my dog seems to have a conscience.  When he does something bad (ie: that is completely in accordance with his nature that I’m going to scream at him about because I find it inconvenient), he comes sulking with a look of guilt in his eyes and his tail between his legs.  The implications here are manifold.

Am I worried that my conservative peers are going to judge me?  And is this leading to my feelings of guilt?  And if so, doest his make my conscience unreliable?  (Oh, God – please let the answer be no)  This is, after all, the exact same feeling that I had when I was first converted, or “saved.”

My position has long been that God went to the time, effort, and expense to give me a conscience, and therefore I had a built-in moral compass and would not trust my spiritual journey to “some guy”.  Good – more doubts for the pile.

I’m going to post this and revise.  It’s not quite making the point that I want to make…

Thursday, October 20, 2005

Evolution

I’m a thief, I’m a liar
There’s my church, I sing in the choir
...It's evolution, baby...

http://music.yahoo.com/ar-259450-videos--Pearl-Jam
http://www.lyricsfreak.com/p/pearl-jam/106325.html

Best. Video. Ever.

This really touches a chord with me for some reason. It makes me sad and uncomfortable and angry and hell yeah, all at once.

Saturday, October 08, 2005

Confessions

I confess to listening to Cartmen sing "Oh, Holy Night" and laughing by bloody head off.

I confess to wanting ban all directors from tinkering with movies after they’re released. Director’s cut is synonymous with bantha poodoo.In particular, I confess that I would kill every man in this room for one night with my beloved "Last of the Mohicans" in a version that wasn't disemboweled by Michael Mann. He removed some of the most powerful moments from the film in order to achieve his true vision of feculent kitty litter.

Well done, Mike.

Bastard….

I further confess to listening to Rachmaninoff primarily because I dig the name.I once named an Orc “RoKmonanov” in ShadowRun (an old RPG for those who don’t know). He kicked a lot of ass before eventually succumbing to wounds acquired while lighting his urine afire and using his wang as a flamethrower after an all-night everclear binge. heh –good times.

I confess that I’ve often had “Old Hippie Christmas” by the Bellamy Brothers playing on loop in my mind. “Decorating everything … before the fat man comes to town… He’s trimmin’ up his favorite tree, and tokin’ what he grew…” “… Jesus must have been a hippie – peace and love toooooo everyyyyyy onnnnnnnee.”

Wednesday, October 05, 2005

The water calls me.

Every time I see the ocean, every time I see a pond or a river, every time a dark, cool body of water; I feel like it’s calling to me. I just want to go under and not come up again.

But not in some suicidal drown myself way. More in a beautiful, become one with the universe sort of way.

Anyone else ever have that?

Thursday, September 29, 2005

Crappy Microsoft

All I needed was to reference return codes for the net stop and net start commands, and every *(&#$@ link was busted.

Grrrrrrrrr.

Wednesday, September 28, 2005

silly similie

This is how I feel when approaching religious issues scientifically...

Let's pretend that I'm living on a huge pile of uranium (or something else horribly radioactive) in the year 1000 BCE.

Because it’s 1000 BCE, I don’t understand Uranium. In all probability, I incorrectly understand the elements to be earth, wind, and fire. However, because the best minds available to the wondrous modern age in which I live (1000 BCE) have come together and agreed on the answer to the question of elements, I am altogether confident that we have the whole element question sufficiently worked out and put to bed. Earth. Wind. Fire.

But I digress…

I don’t understand or acknowledge the existence of uranium, which won’t be discovered for another 2,790 years. If I had a proper understanding of elements, I might work out the existence of atoms, and then sub-atomic particles, and finally radioactive decay of elements. (All vastly oversimplified herein…)

Furthermore, there exists no equipment to allow me to measure or quantify my exposure to the radioactive decay which, again, I cannot fathom because it’s 1000 BCE.

I am capable of observing the loss of my hair and teeth, that I cough up blood, and that I am continually sick to my stomach.

The tribal Shaman will no doubt have me smoke something wonderful, and then do a ritual to drive away evil spirits.* The most competent and concerned medical professionals I have at my disposal will, in all likelihood, do equally bizarre things like bleeding me or covering me in leaches. My end will be as inevitable as the setting sun.

My neighbors, noting my demise, will draw upon the vast quantities of knowledge that they have carefully catalogued since their species began and, after much deliberation, they will attribute my death to Tomatoes.

We all know that tomatoes are deadly because they are red in color and we have observed deaths when they're consumed after having sat in bowls made with our leading edge lead-refining techniques.


Conclusions:
Pseudo-Science people: How can we so completely ignore history as to come to believe that we know the whole of everything that is to be known? (uranium point beaten dead above) I say Pseudo-science because true scientists understand that Science has little if anything to say about faith because of precisely the point illustrated above: we've no way to measure the things in question.

Religion People: How can we be so SURE that your particular holy book is INSPIRED, anyway? And if it’s not, what credibility does it have beyond the fallible wisdom of well-intentioned men codifying oral tradition? And…

Concerning Genesis: why would an omnipotent God DO such a silly thing? I mean really: Humans + potential for sin + infinite time + agent of evil capable of tempting = ????? Am I missing something?

Other...
Just because something can be explained away, doesn’t mean it should be. Miracles DO happen. Prayers DO get answered, etc.
Something really is going on here (spiritually). But I often feel it's just so many levels beyond my grasp.
I can neither talk about spiritual things scientifically, nor can I discount them because of my lack of understanding.
Science is finite, and can play only a meager role in explaining the infinite.
Grrrrrrrrr.

*I feel fairly comfortable saying that we’re not yet Christian in Europe in 1000 BCE because "BCE" means "Before the Common Era". In a time with a weaker spirit of Anti-Christ, it was called "BC", or "Before Christ".
Presumably Europe was Druidic? Did they smoke anything good?
I think it's funny that 2000 years later, a guy who was born in a barn has everyone's panty's in a bunch. :)

Installing Linux on a Dead Badger

Installing Linux on a dead Badger…

Tuesday, September 27, 2005

my reasons for living

I took my eldest daughter golfing this evening.

Livie is one of four reasons that I live. (  The others are Amber Jo, Eva, and Danette.  My girls, much like beer, are proof that God loves me and wants me to be happy.

Livie is so enthusiastic, and the joy just pours out of her when we do things together.  

She’s starting to detect my character flaws and be disapproving, but that’s OK.  She caught me watching a taped MNF game when I should have been hard at work (and I was in fact working between plays), and sort of let me have it.  As much as I would love for her to go on forever admiring me without question, I would much rather she thinks critically and sees clearly, even when concerning her old man.

Thursday, September 22, 2005

Michael Crawford

If I were ever going to shag a guy, it would be Michael Crawford.

Lieber Gott!! The movie (Phantom of the opera) would have been SOOOO much better had these people gotten their way.

Music of the night (sung by MC) is primary in a group of about 3 songs that are my all-time greats. These songs break some great impermiable boundary in my mind, such that no matter how many times I hear them, I'm always excited to hear them again. I've heard this song litterally thousands of times in the last 15 years, and it continues to enthrall.

Wednesday, June 01, 2005

r6016 - not enough space for thread data

encountered this problem when trying to run VC++6 pgm after SP update on 2000 & XP.

Fixed by changing Project->Properties->C/C++ , category of code generation, Processor from BLEND* to 80386

Wednesday, April 20, 2005

Deleting files that are greater than 30 days old

In looking for a way to delete files that are older than 30 days, I came across ForFiles.exe:


ForFiles is useful for a couple of reasons:
1. It replaces the FOR command in the command shell, which is extremely powerful and useful, but a bit of a pain.
2. It allows you to use relative time (in days) to select the files that you want to act upon

Because links often break, I've included the content here. This is a microsoft TechNet article.


Link to article:

Forfiles

Updated: January 21, 2005
**
**

Forfiles

Selects files in a folder or tree for batch processing.

Syntax

forfiles [/p Path] [/m SearchMask] [/s] [/c Command] [/d[{+ | -}] [{MM/DD/YYYY | DD}]]

Parameters

/p Path

Specifies the Path on which you want to start searching. The default folder is the current working directory, which you specify by typing a period (.).

/m SearchMask

Searches files according to SearchMask. The default SearchMask is *.*.

/s

Instructs forfiles to search in subdirectories.

/c Command

Runs the specified Command on each file. You must wrap command strings with spaces in quotation marks. The default Command is "cmd /c echo @file".

/d[{+ | -}] [{MM/DD/YYYY | DD}]

Selects files with a date greater than or equal to (+) or less than or equal to (-) the specified date, where MM/DD/YYYY is the specified date and DD is the current date minus DD days. If you do not specify + or -, + is used. The valid range for DD is 0 - 32768.

/?

Displays help at the command prompt.

Remarks

Forfiles is most commonly used in batch files.

Forfiles /s is similar to dir /s.

The following table list the variables that you can use in the /cCommand command string.


VariableDescription

@file

File name

@fname

File name without extension

@ext

File extension

@path

Full path of the file

@relpath

Relative path of the file

@isdir

Evaluates to TRUE if a file type is a directory, otherwise it evaluates to FALSE

@fsize

File size in bytes

@fdate

Last modified date stamp on the file

@ftime

Last modified time stamp on the file

With forfiles, you can run a command on or pass arguments to multiple files. For example, you could run the TYPE command on all files in a tree with the *.txt extension. Or, you could execute every batch file (*.bat) on the C:\ drive with the file name "Myinput.txt" as the first argument.

With forfiles, you can do any of the following:

Select files by an absolute or a relative date using /d.

Build an archive tree of files using variables such as @fsize (file size) and @fdate (file date).

Differentiate files from directories using the @isdir variable.

Format output by including special characters in the command line and surrounding the characters with the hexadecimal code 0xHH.

Forfiles works by implementing the recurse subdirectories flag on tools designed to process only a single file.

Examples

To list all of the batch files on drive C:, type:

forfiles /p c:\ /s /m*.bat /c"cmd /c echo @file is a batch file"

To list all of the directories on drive C:, type:

forfiles /p c:\ /s /m*.* /c"cmd /c if @isdir==true echo @file is a directory"

To list all of the files older than 100 days on drive C:, type:

forfiles /p c:\ /s /m*.* /dt-100 /c"cmd /c echo @file : date >= 100 days"

To list all of the files older than January 1, 1993 on drive C:, and then display "file is quite old!" for files with a date older than 01/01/1993, type:

forfiles /p c:\ /s /m*.* /dt-01011993 /c"cmd /c echo @file is quite old!"

To list all of the extensions of all of files on drive C: in column format, type:

forfiles /p c:\ /s /m*.* /c "cmd /c echo extension of @file is 0x09@ext0x09" With:

To list all of the batch files on drive C:, type:

forfiles /p c:\ /s /m *.bat /c "cmd /c echo @file is a batch file"

To list all of the directories on drive C:, type:

forfiles /p c:\ /s /m *.* /c "cmd /c if @isdir==true echo @file is a directory"

To list all of the files older than 100 days on drive C:, type:

forfiles /p c:\ /s /m *.* /d t-100 /c "cmd /c echo @file : date >= 100 days"

To list all of the files older than January 1, 1993 on drive C:, and then display "file is quite old!" for files with a date older than 01/01/1993, type:

forfiles /p c:\ /s /m *.* /d t-01011993 /c "cmd /c echo @file is quite old!"

To list all of the extensions of all of files on drive C: in column format, type:

forfiles /p c:\ /s /m*.* /c "cmd /c echo extension of @file is 0x09@ext0x09"

Formatting legend


FormatMeaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Microsoft Word will not work on a server on which it is not installed

Turns out that Microsoft Word won't work on a server on which it's not installed :)

I support a program that interfaces with the InSystems Calligo Assembly Engine (or assembly server, depending on configuration) through DCOM using the InSystems assembly link toolkit.

We have, over the years, decided to take advantage of every API that the assembly link toolkit affords, and therefore do our printing through a AssemblyLinkDocument.PrintDoc() method.

As it turns out, the .print() method does a very strait-forward automation of MS-Word to accomplish it's printing, and will therefore not work when Word is not isntalled.

This manifest itself by an HResult of 0x80010105 on the call PrintDoc. Some initial googling of the value indicated that this is what you get when you try to invoke a method on an object that has yet to be instantiated.

Thursday, April 14, 2005

Start Cmd.Exe by right-clicking explorer

Link to page where found:
https://secure.codeproject.com/shell/commandprompt.asp

This page has tremendous information on dealing with the Windows Shell & extensions as related to starting cmd.exe from explorer

and, because links tend to break - an excpert

Selecting this entry will open a DOS prompt with its current directory set to the folder you just right-clicked.
  1. Open your registry (regedit)

  2. Go to the following key: HKEY_CLASSES_ROOT\Folder\shell
  3. Add this key: CmdPrompt and set its default value to: "Command Prompt"
  4. Under this new key, add the following key: Command and set its default value to: "c:\winnt\system32\cmd.exe"

You should now have this tree in your registry:

That's it. Now, whenever you will right-click on a folder, the pop-up menu will contain an entry called "Command Prompt".

Tuesday, April 12, 2005

Great spot to download individual Windows 2000 resource kit tools

http://www.petri.co.il/download_free_reskit_tools.htm

A better way is to use the Forfiles tool, which you can find in the Windows resource kits. Forfiles lets you perform a date-based deletion. Here's a sample command:

Forfiles -p R:\MyFiles -s -m *.*
-d -365 -c "Cmd /C Echo
0x22@Path\@File0x22"
article on how to delete old files:
http://www.windowsitpro.com/Article/ArticleID/44891/44891.html

Wednesday, April 06, 2005

You need a Windows 2000 or later to run this stub because it uses these features

Ran into this problem when upgrading (migrating) a project from VC++ 6 to VC++7. Actually, I think that I recall having this issue in VC++6 as well, but that's been a few years ago, so memory is fuzzy.

Possible answers:
1. You may also see this error if you build an ATL project with the /robust MIDL compiler option. /robust is only for use when building for a Windows 2000 or later machine. So, either remove /robust or change this line in the dlldatax.c file:#define _WIN32_WINNT 0x0400 //for WinNT 4.0 or Win95 with DCOMto #define _WIN32_WINNT 0x0500 //for WinNT 4.0 or Win95 with DCOM

2. If you change RpcNdr.h to:
#if (0x500 <= _WIN32_WINNT)
#define TARGET_IS_NT50_OR_LATER 0 // 1
#else
#define TARGET_IS_NT50_OR_LATER 1 // 0
#endi

The link to this can be found at:
http://www.codeguru.com/forum/printthread.php?t=307745

Thursday, March 31, 2005

Submit JCL through FTP

This is something that I did back in my MCI days of integrating Windows NT servers with mainframes in the land of no budget.

1. Establish a connection with the MVS/S390/Z-OS host
2. quote site filetype=jes
3. put preexist.jcl
Where preexist.jcl is the JCL that will be submitted. It needs to be located on the submitting box, not the mainframe.

Also, I found article that says you can retrieve the output thusly:

To submit a pre-existing JCL job stream via FTP and retrieve the results can be as simple as:
ftp mvs.host
quote site filetype=jes
get preexist.jcl jes.output

http://expertanswercenter.techtarget.com/eac/
knowledgebaseAnswer/0,295199,sid63_gci984797,00.html

To further automate the process, you can store the ftp commands in a file and use ftp -s:

Wednesday, March 30, 2005

Problem getting JAVA GUI to show itself

When i would run the debugger on a SWING based JAVA utility that I had written using WSAD in order to read data from an iseries DTAQ object, and the java icon would appear when doing an alt-tab, but I couldn't find the GUI. Turns out that WSAD didn't auto-generate the following code ...


TEST1 T1 = new TEST1();
T1.show();

... in the main method.

I don't know if this was my mistake, or if WSAD is really this challenged to anticipate the need for this terribly, terribly boiler-plate code.

By the by, why aren't there any freely downloadable iseries utilities to work with dataqueues? I'll post the one that I have when it's "finished". That could be a while. It currenlty will only read from a dataqueue and clear the contents.

Yep, I'm an idiot: WSAD import

Again, to my knowledge, all you need to do is the steps I depicted below.

-----Original Message-----From: Hayes, Joe Sent: Tuesday, March 29, 2005 10:11 AMTo: Indraganti, Sastry; Zheng, JasonSubject: RE: WSAD Question

You’re the man, Sastry. Much obliged.
So, to clarify, in the future, do I need to do all three of these things, or do I just need to do the thing that you said?
Thanks again.
Joe

_____________________________________________From: Indraganti, Sastry Sent: Tuesday, March 29, 2005 10:03 AMTo: Hayes, Joe; Zheng, JasonSubject: RE: WSAD Question

To the best of my knowledge, Go to your project, click on properties, Go to Java build path, then to libraries and then click on add external jars and browse to wherever you have jt400.jar. This should solve the problem.
Jason- You could correct me if I am wrong. Thanks!
Sastry

-----Original Message-----From: Hayes, Joe Sent: Tuesday, March 29, 2005 9:58 AMTo: Zheng, Jason; Indraganti, SastrySubject: WSAD Question
I’m trying to get WSAD to import com.ibm.as400.* from JT400, but keep getting a message stating that com.ibm.as400 cannot be resolved.
I’ve added the jt400.jar file to my classpath variable via Window->Preferences->Java->CLASSPATH.
I’ve also right-clicked the project and done import->File System-> and browsed to the jar file to select it.
Is there something else that I have to do to get WSAD to find the jar file?
Joe

I had previous written very breifly about  creating a report on disk space using WMI A much better, and very concise instruction for qu...