July 6th, 2008 by qiaojun79
This is useful when you wanna trigger a script to send email without using MS Outlook or Outlook Express.
The sample script below sends an email using IIS’s SMTP service running on the local machine.
Notes:
Special shell characters such as < and > must be escaped using the caret character ^
IIS requires only a minimal set of headers followed by a blank line which separates
the header from the body text. To create the blank line use the following line in
your script:
echo.>>%tempmail%
It is critical that there be no extra spaces in that line! Use exactly as shown.
The move command moves the temporary file with the mail into the pickup directory.
The pickup dir is typically c:\inetpub\mailroot\pickup but this may be different on
your system.
The account under which this script runs must have write permission to the
pickup directory. Once the file is sent the server itself deletes the file from
the pickup directory. DO NOT attempt to write the file directly to the pickup
directory. Always move it from a temp directory. IIS will attempt to send
any file in the pickup directory as soon as it detects it. Therefore you may
not have completed writing to the file before IIS tries to send and deletes the file.
Always move the file to the pickup directory.
==============================================================
@echo off & setlocal
:: Set the temp file location.
set tempmail=%temp%\tempmail.%random%.txt
:: Echo the basic headers to the temp file.
echo To: "Recipient 1" ^<recipient1@domainname^>, "Recipient 2" ^<receipient2@domainname^> >> %tempmail%
echo cc: "Recipient 3" ^<recipient3@domainname^> >> %tempmail%
echo From: "SmartInfo Administrator" ^<Administrator@smartinfo.com^> >> %tempmail%
echo Subject: "Low Hard Disk Space" >> %tempmail%
:: Echo the blank line that separates the header from the body text.
echo.>>%tempmail%
:: Echo the body text to the temp file.
echo Hard disk space goes low.>> %tempmail%
echo Please allocate free space.>> %tempmail%
:: Move the temp file to the mail pickup directory. Adjust this location for your system.
move %tempmail% c:\inetpub\mailroot\pickup
set tempmail=
endlocal
==============================================================
Posted in Web/Tech | 1 Comment »
May 28th, 2008 by qiaojun79
Have you ever wondered why even you have changed the homepage in Internet Explorer 7, still you are looking at "Thanks for choosing Internet Explorer 7" or the address is still http://runonce.msn.com/runonce2.aspx?

To overcome this, goto Start –> Run –> type gpedit.msc and click Run.
You’ll see the screen as shown below. Expand the box accordingly.
Change the settings for “Prevent performance of First Run Customize settings” to Enabled and drop-down box to select “Go directly to home page”

Click OK , close Group Policy and restart Internet Explorer 7.
Posted in Web/Tech | No Comments »
March 29th, 2008 by qiaojun79
I’ve been thinking how the people create themes for their own N73 cellphone. And finally i discover a website where N73 fans can download the application a try it on their own - Carbide.ui S60 Theme Edition 3.1 (http://www.forum.nokia.com/info/sw.nokia.com/id/bb173537-4e67-496f-9967-50917d5cfc47/S60_Theme_Studio_for_Symbian_OS.html)
I haven’t tried, but after i download it, then i’ll know how powerful this application is. Hey, if you have moved ahead of me to use this, tell me your experience! Pretty sure i’m that it will make my handpone looks more interesting! Change to a new theme for another new day!
Posted in Uncategorized | No Comments »
March 28th, 2008 by qiaojun79
Have you ever wondered how chinese characters are being organized in "computer world"? Take a look on this link and try out yourself!
But peps, only if you understand chinese words…
http://blog.cathayan.org/item/1537
Posted in Web/Tech | No Comments »
March 26th, 2008 by qiaojun79
Try this in Google, perhaps it helps you to find a song easily:
-inurl:(htm|html|php) intitle:"index of" +"last modified" +"parent directory" +description +size +(wma|mp3) "<Type the artist and/or song name here>"
Cheers!
Posted in Music | No Comments »
March 25th, 2008 by qiaojun79
How does Microsoft support its products throughout their lifecycle? Take a look on this…
http://www.networksasia.net/article.php?id_article=3274&page=2
Posted in Web/Tech | No Comments »
February 13th, 2007 by qiaojun79
Valentine’s Day, more than any other day, draws our attention to the importance of love in our lives. However, all too often we think of "love" only in a dreamy, romantic way. Much of the popular advice is based on this "romantic" approach to love. But we need to avoid the pitfalls of this short-sighted, superficial approach because that’s actually selling love short.
We need to elevate the meaning of a loving relationship beyond just achieving temporary pleasure. Love is not some little fringe issue in your life. When all is said and done, having a long-term, loving relationship ranks near the top of the list of the best of what life has to offer.
We need to show more respect for love’s significance in the context of life as a whole. Love can provide a solid place to stand in the world. It can be the kind of positive force that lets you go out and face the world on a completely different basis than you could do otherwise.
Falling in love is easy, but staying in love is quite another matter. Apparently it’s one of the most difficult things any of us ever attempts. Because of the high divorce rate and the large percentage of remaining marriages in which couples don’t have a vital love relationship, you may have come to believe it’s inevitable that love will fade with time. Or perhaps you’ve already experienced the discouragement of seeing the love you once shared somehow slip away.
Don’t settle for thinking that you really can’t expect more. You can and you should—regardless of your current situation. While no long-term love relationship is without difficulties, it is possible for love to survive and to be renewed and transformed over time. You can realistically aspire to something better.
Relationships can be the source of great joy or great pain. They seldom stand still; they’re either getting better or getting worse. You deserve more out of love than just a few brief romantic interludes or an ongoing struggle simply to get along. You don’t want life to pass you by while you’re waiting (and hoping) for a good relationship. You’ll feel better if you’re actively doing something toward that end.
It’s not enough to focus on your relationship only on Valentine’s Day (or some other "special" days during the year). Love is the accumulation of the multitude of daily interactions we have with each other. By paying attention to what’s happening on a daily basis—and remembering the real importance of love in our lives—every day can be Valentine’s Day.
(Adapted from Making Love Stay by Peggy Vaughan and James Vaughan, Ph.D.)
Posted in Uncategorized | No Comments »