Tuesday, October 30, 2007

asp.net menu hiding <h3>

Note to self:

I have a asp.net web app that uses the built-in asp.net menu control. For some reason the page was hiding some of the elements (<h3> to be specific) upon load, and showing them while I hovered over the asp.net menu. I put a <br /> above the <h3> elements and they magically appeared again upon page load.

Thursday, September 27, 2007

Firefox add-on list

I develop apps almost exclusively for IE, but I prefer Firefox as my own, personal web browser, because of the add-ons:
  1. NoScript
  2. Server Spy
  3. FireBug
  4. FireFTP
  5. Adblock Plus
  6. Adblock Updator
  7. Del.icio.us bookmarks
  8. Download Embedded
  9. Download Status Bar
  10. EditCss
  11. Flashblock
  12. Gmail Manager
  13. Google Reader Notifier
  14. Google Toolbar
  15. Grab and Drag
  16. IE View
  17. Web Developer

My Favorite Tools

Who knows what will happen with the upcoming sale of the company, so i'll bookmark my favorite tools (in case I need to download them again):
  1. AstroGrep - for text searching files
  2. AutoRuns - for cleaning up the startup (and you've gotta love the name)
  3. Eclipse - just in case I need to do any Java development again
  4. Fiddler - a great http debugging aid
  5. Foxit Reader - a great, incredibly small pdf reader
  6. LDP - this has helped me immensely with my AD development
  7. Notepad++ - I've just started using this, but it is my new favorite text editor
  8. Paint.Net - This is the perfect graphics program for my meager needs
  9. Process Explorer - another great tool from sysinternals
  10. PureText - a helpful little app to allow me to easily paste only text
  11. TCPView - allows me to watch ports
  12. Window's Powershell - this is a new one for me that I like a lot
  13. Zoomit - not a lot of practical need for this, but it is a neat toy
  14. 7Zip - my open-source winzip replacement
  15. Subversion - what a great source code repository!
  16. TortoiseSVN - one of the main reasons why I love Subversion so much
  17. Display Fusion - For greater desktop control of multiple monitor setups
  18. Vs 2005 Cmd Prompt Here - Right click a folder in window's explorer, and you can open a vs 2005 cmd prompt at that folder.
  19. Clipx - A nice clipboard extender

Wednesday, September 26, 2007

Not all code - NBA

Shawn Marion reminds me today why I'm finding it increasingly harder to stomach the NBA:

"I'll do what I've got to do," he said. "I'm a professional. I'm not bitter. I love the fans, but I've got to take care of me."

Setting up svnsync

Now that I have my svnserve services running, it's time to setup svnsync. Here's the steps I followed:

  • Begin with a blank, copy repository
  • Created a user to be used for the synch process (svnsync)
    • User has read permissions on original repository
    • User has r/w on the copy repository
  • I had to create a pre-revprop-change.bat file. This was a bit of a pain, as I've written very few DOS scripts, and the templates provided were unix shell scripts. I finally sludged my way through it and ended up with the following, incredibly basic implementation:
IF %3==svnsync exit 0
ELSE (
echo "Only the svnsync user can change revprops"
exit 1
)
  • I then needed to initialize the sync, with the following command:
    • svnsync init --username svnsync svn://copyRepository:port svn://originalRepository:port
  • Finally, I executed a sync
    • svnsync sync svn://copyRepository:port
I browsed the copyRepository with tortoise and it was in synch with originalRepository.

Running two separate svnserve instances

I have subversion installations and repositories at two separate remote locations. I have been tasked with keeping each repository in synch with a master repository at a central location. To do this, I have setup two separate subversion repositories on the central server. I've setup two services on the central server that run svnserve, each is running on it's own non-standard port, each is attached to one of the repositories.

Deleting Services

Of course I didn't get my service setup correctly on the first try, so I had to delete it. The command is as follows:

sc delete [servicename]

In this case for me, servicename = svnserve