News



www.flickr.com
This is a Flickr badge showing public photos from RhythmAddict. Make your own badge here.
Locations of visitors to this page

May 2006 Entries

Ajax Animated GIFs


Hey all,

Came across two great resources for using/generating animated GIFs for your AJAX enabled projects...

The first one is a site that dynamically generated animated GIFs for your use...

The second is control that lets you display a "wait message". It's best to check out the demo on this. A neat feature of this is the ability to display the "wait message" during a page_load. This control reminds me of this.

posted @ Monday, May 08, 2006 1:40 PM | Feedback (2) | Filed Under [ Ajax Misc ]


Some handy Windows Tips


Querying and Dropping Windows Terminal Service Sessions Remotely

I often run into scenarios where I can't access a server via Terminal Services because there are no available sessions. This usually means there are too many people signed on, or one or more sessions have hung in a disconnected state. So how do you check? You connect (via TS) to another server and utilize the following utilities.

This will list users that are on the server whose IP you provide, as well as the state of their connection
>QWINSTA /server:1.1.1.1

This will give you the ability to drop a user given their session ID

>RWINSTA /server:1111

Pretty neat. Thanks
Scott Forsyth I use this feature a lot, so I figured I'd post it.


Killing processes remotely (using RKILL)

This is a neat tool that will allow you to list process ID's on a remote machine (that you were an ADMINSTRATOR of), and kill processes on the remote machine - as the name suggests a la *nix style. You can downlaod this tool from here. Usage is simple.

C:\tools>rkill
Usage : rkill /view \\servername
        to get the process list on servername
Usage : rkill /kill \\servername pid
        to kill process pid on servername
Usage : rkill /token \\servername

        to get your remote security token on servername
Usage : rkill /install 
\\servername
        to install the RemoteKill service on servername
Usage : rkill /deinstall  \\servername

        to deinstall the RemoteKill service on servername

To install RKILL remotely: C:\tools>rkill /install \\yourServerName

To obtain a token: C:\tools>rkill /token \\yourServerName

To view processes: C:\tools>rkill /View \\yourServerName [Outputs Processes and PID's]

To kill a process: C:\tools>rkill /kill \\yourServerName 123

Lastly, a VBS script to get the randomly generated IUSER_MACHINENAME account from your box in case you lock yourself out (oops!)

'Script will find default password for IUSER_MachineName account
'This pw is randomly generated by win

Function outputTextFile(pString)
'Function creates text file for debug
Dim objFileSystem, objOutputFile, strOutputFile
'generate a filename base on the script name
strOutputFile = "./" & Split(WScript.ScriptName, ".")(0) & ".out"
Set objFileSystem = CreateObject("Scripting.fileSystemObject")
Set objOutputFile = objFileSystem.CreateTextFile(strOutputFile, TRUE)
objOutputFile.WriteLine pString
objOutputFile.Close
Set objFileSystem = Nothing
End Function

Dim IIsObject
Set IIsObject = GetObject ("IIS://localhost/w3svc")
'WScript.Echo "According to the metabase, the anonymous credentials are:"
'WScript.Echo " AnonymousUserName = " & IIsObject.Get("AnonymousUserName")
'WScript.Echo " AnonymousUserPass = " & IIsObject.Get("AnonymousUserPass")
'WScript.Echo " WAMUserName = " & IIsObject.Get("WAMUserName")
'WScript.Echo " WAMUserPass = " & IIsObject.Get("WAMUserPass")

outputTextFile(IIsObject.Get("AnonymousUserPass"))
Set IIsObject = Nothing



posted @ Wednesday, May 03, 2006 5:02 PM | Feedback (2) | Filed Under [ Misc Windows Administration/Tips ]


Tips to negotating your salary (!)


Great link here on negotiating your salary...Here is an excerpt:
"In a negotiation on your salary and benefits, DO NOT engage with someone who can say, “I’ll have to get back to you on that.” One of the keys to successful negotiation is that both sides have the same amount of thinking time."
Check it out.

posted @ Monday, May 01, 2006 12:19 PM | Feedback (0) | Filed Under [ Misc ]