Calvin Hsia's WebLog

thoughts from a professional developer

  • Calvin Hsia's WebLog

    Reboot from remote desktop

    • 64 Comments
    Remote Desktop (mstsc.exe) is great: it allows me to access another remote machine as if I were sitting at its keyboard and seeing its screen. My web server sits on top of a 7 foot tall bookcase but I have no need to touch it: I can use RD from other...
  • Calvin Hsia's WebLog

    Make an interactive screen saver

    • 9 Comments
    Most screen savers will terminate when there is any mouse or keyboard activity, but a screen saver is just a program: it can do whatever it wants in response to input. Below is 40 lines of sample code to make a Visual FoxPro screen saver which consists...
  • Calvin Hsia's WebLog

    Start your Screen Saver NOW!

    • 7 Comments
    Now that Las Vegas Devcon is over, I’ll be posting some of my sample code from the keynote and my session here. I demonstrated how to make a simple VFP screen saver. To test it, invoking it immediately is useful. Windows XP allows you to have a screen...
  • Calvin Hsia's WebLog

    Form design shortcut

    • 1 Comments
    I’ve been very busy creating content for our developer conference and we’ve been working hard on our product because we’re close to shipping. While preparing a demo form, I came across a shortcut for designing a form that I thought I’d share. I wanted...
  • Calvin Hsia's WebLog

    Spy on your programs

    • 10 Comments
    A user emailed me a question: How can I get the handle often named as "HWnd" of any Visual Foxpro native visual object such as COMMANDBUTTON,SHAPE,EDITBOX,LISTBOX ,etc.? There is a tool called SPY++ that ships with Visual Studio (on my machine, Start...
  • Calvin Hsia's WebLog

    Print a t-shirt

    • 6 Comments
    I went to http://www.stamps.com to order US Postage stamps with a photo that I choose to upload: no Elvis stamps for me. There are also sites (like www.pictureframes.com ) that will print/frame and deliver a customer photograph to any address: a great...
  • Calvin Hsia's WebLog

    How to protect your web site pictures from being saved

    • 9 Comments
    A customer emailed me: As you are an expert I have the following question that maybe you know to answer. My wife is an artist making cards for every occasion. We have now the idea of selling these cards through internet. Showing these cards on a gallery...
  • Calvin Hsia's WebLog

    Hear your web site being hit

    • 14 Comments
    Somebody in the world is browsing the internet and hits your web site. How do you know? IIS provides logging services (WinXP: Control Panel->Admin Tools->IIS->Web Sites->Default Web Site. Rt-Click, Properties, Enable Logging, choose the kind...
  • Calvin Hsia's WebLog

    Anachronisms

    • 20 Comments
    My 7 year old daughter was playing with a toy Fisher Price dial telephone. She asked “How does this work?” I had to explain how we had to “dial” a phone. Remember slide rules? (I still use a slide rule: they’re great when you want to have a custom lookup...
  • Calvin Hsia's WebLog

    Put a web browser on your desktop

    • 10 Comments
    Just a few lines of code allow you to put a fully functioning custom web browser on your screen background. If you’re not running the beta of VFP9, then remove the autocomplete property on the textbox below. The AlwaysOnBottom puts the browser form below...
  • Calvin Hsia's WebLog

    Harvesting blood

    • 3 Comments
    I gave blood yesterday to the Puget Sound Blood Center It’s great: they have an online reservation system and send a bloodmobile to Microsoft campus pretty frequently (about every 8 weeks: (that’s how often you are allowed to give blood) how about that...
  • Calvin Hsia's WebLog

    Displaying playing cards for bridge

    • 7 Comments
    I love to play bridge. When I was a little kid, my parents played with their parents. I would put my palm on the table, and my dad would riffle shuffle on my hand. The thrills of childhood! Nowadays I read bridge columns and try to play at the local bridge...
  • Calvin Hsia's WebLog

    Why was the original IBM PC 4.77 Megahertz?

    • 34 Comments
    In 1979, I had a summer job on Long Island , NY designing a circuit board for the front panel of a satellite control system. That was the time Apple II and Radio Shack were top selling computers. We were designing a circuit board that had an embedded...
  • Calvin Hsia's WebLog

    Sharing Digital Pictures of your friend's

    • 13 Comments
    My family recently went to the Microsoft Company Picnic, where we met with a friend’s family to enjoy the amenities. I took some pictures of our kids, and I emailed a link to the pictures to my friend. The link shows a page with the picture...
  • Calvin Hsia's WebLog

    Phone Number Challenge update

    • 9 Comments
    I'm back from a month sabbatical/paternity leave. Due to popular demand, here’s an update of the phone number problem, with a web site from which you can try the algorithm A while ago, I posted a blog about a sort of informal programming...
  • Calvin Hsia's WebLog

    Ancestors and population paradox: exponential growth

    • 16 Comments
    If I have 2 parents, and each of them have 2 parents, each generation back has double the number of members. Thus there are 2^n members n generations ago. 10 generations ago there were about one thousand (1024) people, 20 back were 1 million, and 30 back...
  • Calvin Hsia's WebLog

    What is a C0000005 crash?

    • 35 Comments
    In my blog about Dr. Watson I talked about product crashes. What is an example of a crash? How destructive is it? Here’s a simple example. MyFunction takes a string parameter and calculates its length MyFunction ( char * StringParam...
  • Calvin Hsia's WebLog

    Thirty years ago, computers were quite different

    • 6 Comments
    In the old days, we had to use a typewriter. I asked if I could use the ASR-33 teletype machine which connected to our high school PDP-8 computer, but it only printed in UPPER CASE on rolls of yellow paper. Did you ever wonder the origin of the...
  • Calvin Hsia's WebLog

    Dr. Watson: Please send in your error report

    • 29 Comments
    I bet you’ve seen dialogs similar to this: We at Microsoft refer to this dialog/technology as Dr. Watson (after the famous Sherlock Holmes assistant). Before Watson, computer users would get the BSOD (The Blue Screen of Death)...
  • Calvin Hsia's WebLog

    Disappearing Window Contents while dragging the mouse

    • 14 Comments
    We have heard a couple reports of strange behavior in Visual FoxPro if you click on a thumb button in a scrollbar, drag it up or down a little, then pause for 6 seconds or so. The contents of the window would disappear, leaving a blank editing window...
  • Calvin Hsia's WebLog

    Designing User Interface for car keys

    • 14 Comments
    Here at Microsoft we have people called Program Managers (PMs) whose job is to design a product. They’re the ones that make a feature usable to the customer. A remote keyless entry car fob is quite useful. It’s essentially a wireless...
  • Calvin Hsia's WebLog

    Start using XML and XSLT to create HTML

    • 18 Comments
    Tonight at the Seattle Visual Foxpro user group meeting Richard Stanton gave a great presentation of the new reporting features of VFP9, which is currently available in beta . The question came up about how to use XSLT to create HTML from XML. I...
  • Calvin Hsia's WebLog

    Blogs get 300 hits per hour: Visual FoxPro can count.

    • 17 Comments
    I wanted to get a picture into my blog, which isn’t run by my web site. It actually gets posted to 2 URLs: http://blogs.msdn.com/calvin_hsia or at http://weblogs.asp.net/calvin_hsia I can view and edit my entry in HTML, so I just added an...
  • Calvin Hsia's WebLog

    Styrofoam Peanuts

    • 21 Comments
    I like the convenience of shopping online. Not only are there lots of goodies available, but it’s easy to jump from store to store with a couple keystrokes. However, it’s very hard to tell if the ordered product is shipped in packaging...
  • Calvin Hsia's WebLog

    I want my own email! MSN Premium

    • 177 Comments
    My 7 year old daughter Wendy has been clamoring for her own email account, among other things (like her own cell phone). She’s been using a computer for years, and has been using my old web server laptop as her main machine, mainly to surf kids...
Page 17 of 18 (426 items) «1415161718