You never know if a girl's gonna say 'yes', or if she's gonna laugh in your face and pull out your still-beating heart and crush it into the ground with her heel.

Xander ,'Help'


Buffistechnology 2: You Made Her So She Growls?  

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Typo Boy - Jul 04, 2006 6:44:45 pm PDT #8395 of 10003
Calli: My people have a saying. A man who trusts can never be betrayed, only mistaken.Avon: Life expectancy among your people must be extremely short.

In a windows script file in XP home I cannot use appactivate sucessfully with a particular program (I'm guessing written in VB). I can use an the exec method to open the program successfully and capture a process id, but whether I use the window name (displayed in my app list) or the process id, appactivate returns false.

t OK solved the problem. For some reason trying to activate this super buggy app in a loop just hangs for ever. But if I skip the loop and just wscript.sleep 5000 before activating everything is fine. mickey mouse but it works. dunno my you can't DO while appactivate is false, but you can't - maybe constantly trying to get the window keeps the app from fully loading.


esse - Jul 04, 2006 7:47:03 pm PDT #8396 of 10003
S to the A -- using they/them pronouns!

thanks tommyrot!


tommyrot - Jul 05, 2006 6:09:28 am PDT #8397 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Pro'lly no one knows this, but we're desperate...

Is anyone familiar with running VBScript on an IIS server, with the following code being executed on the server:

set objUser = GetObject("WinNT://MEI-NT/someuserid,user")

In addition to setting up the objUser object, this automatically calls up a Windows authentication dialog thingie, where the user has to enter his ID and password. This is authenticated using Active Directory. The problem is our client changed their authentication server to bring it up to Windows 2003 standards (or something). This broke the GetObject("WinNT://MEI-NT/someuserid,user") function- the server returns a "Permission Denied" error for that line.

Anyway, is anyone familiar with this stuff?

eta: The main IT guy at the client's says he doesn't think it's a permissions issue. Nonetheless, we're trying to set up a site that runs under Administrator, to see if it at least works there....


Typo Boy - Jul 05, 2006 7:14:07 am PDT #8398 of 10003
Calli: My people have a saying. A man who trusts can never be betrayed, only mistaken.Avon: Life expectancy among your people must be extremely short.

I would agree with your client's main IT guy. I'm betting that the directory structure changed with the upgrade.


tommyrot - Jul 05, 2006 7:35:59 am PDT #8399 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Ah. Win2003 tightens security a bit. It does not allow "2-hop" authentication - i.e. from a user to another server to the authentication server. It only authenticates for users connecting directly.

So, we've seen a recommended workaround and now we're playing with stuff along the lines of:

Set objUser = GetObject("winmgmts:{impersonationlevel=delegate,authority=kerberos:DC1}")

We don't understand winmgmts (WMI) much at all so we haven't gotten it to work yet.


Typo Boy - Jul 05, 2006 7:40:25 am PDT #8400 of 10003
Calli: My people have a saying. A man who trusts can never be betrayed, only mistaken.Avon: Life expectancy among your people must be extremely short.

interesting. Thanks for the update.


Gudanov - Jul 05, 2006 8:49:17 am PDT #8401 of 10003
Coding and Sleeping

Awhile ago I mentioned thinking it would be neat if Opera could read the threadsuck to me, so I make a python script to make the suck more Opera reading friendly.

import sgmllib, string, sys

class StrippingParser(sgmllib.SGMLParser):

# These are the HTML tags that we will leave intact valid_tags = ('b', 'i', 'br', 'p') skip = 0 name = 0

from htmlentitydefs import entitydefs # replace entitydefs from sgmllib def __init__(self): sgmllib.SGMLParser.__init__(self) self.result = "" self.endTagList = [] def handle_data(self, data): if data and self.name == 1: self.result = self.result + data elif data and self.skip == 0: self.result = self.result + data

def handle_charref(self, name): self.result = "%s&#%s;" % (self.result, name) def handle_entityref(self, name): if self.entitydefs.has_key(name): x = ';' else: # this breaks unstandard entities that end with ';' x = '' self.result = "%s&%s%s" % (self.result, name, x) def unknown_starttag(self, tag, attrs): """ Delete all tags except for legal ones """ if tag == 'p' and self.getClass(attrs) == 'normal-text': self.skip = 1 endTag = '' % tag self.endTagList.insert(0,endTag) elif tag in self.valid_tags: if tag == 'p': self.skip = 0 self.result = self.result + '' elif tag == 'blockquote': self.result = self.result + 'Start Quote ' elif self.getClass(attrs) == 'nametext': self.result = self.result + '

New Post By ' self.skip = 1 self.name = 1 elif tag == 'span': self.skip = 1

def getClass(self, attrs): returnValue = '' for k,v in attrs: if k == 'class': returnValue = v return returnValue def unknown_endtag(self, tag): if tag in self.valid_tags: self.result = "%s" % (self.result, tag) remTag = '' % tag self.endTagList.remove(remTag) elif tag == 'blockquote': self.result = self.result + 'End Quote ' elif self.name == 1 and tag == 'span': self.name = 0 elif tag == 'span': self.skip = 0 def cleanup(self): """ Append missing closing tags """ for j in range(len(self.endTagList)): self.result = self.result + self.endTagList[j]

def strip(s): """ Strip illegal HTML tags from string s """ parser = StrippingParser() parser.feed(s) parser.close() parser.cleanup() return parser.result

file = open(sys.argv[1], 'r') content = file.read() file.close() stripped = strip(content) file = open(sys.argv[2], 'w') file.write('Stripped Suck') file.write(stripped) file.write('') file.close()


Gudanov - Jul 05, 2006 8:53:27 am PDT #8402 of 10003
Coding and Sleeping

It could probably be more elegant, but it's the first time I've used python and it was pretty quick and dirty. Anyhow, the first argument is the input file (a threadsuck saved to disk) and the second argument is the output file (an html file). I only use Opera for listening to web text, for some reason I just like the way Firefox works better.


Sophia Brooks - Jul 05, 2006 10:38:36 am PDT #8403 of 10003
Cats to become a rabbit should gather immediately now here

I have a TV. It is new (this year). I have four options for Closed Captioning, C1, C2, T1 and T2. C1 works for TV. The thing I can't figure out is how to get the closed captioning on DVD's that do not have subtitles. For example, Reefer Madness claims to be closed captioned for the deaf, as does Veronics Mars, and people keep telling me to "use the captioning through my TV". But I can't get it to work.

Unfortunately, I have no idea what make or model my TV is.

Does anyone have any idea (I have tried each option in sucession and that did not work)


Polter-Cow - Jul 05, 2006 10:51:12 am PDT #8404 of 10003
What else besides ramen can you scoop? YOU CAN SCOOP THIS WORLD FROM DARKNESS!

Hi. I'm sure this question has been asked numerous times in this thread, but now it's finally my turn!

What digital camera should I buy? Where should I get it? My price range is $200-$300, and I would prefer one that can do video too.