PowerShell script for rebuilding ASP.NET

# build
msbuild /t:Rebuild /v:q
# kill aspnet
get-process aspnet_wp | kill
# reset iis
iisreset
# clear log4net logs
del -force c:\logs\*.*
# poke the webpage so that IIS/ASP.NET will load the webapp
get-url http://localhost/TestProject/TestPage.aspx | out-null

 

You'll need the Power Shell Community Extensions for the last get-url cmdlet.

Plan: Wiki Bot

Many companies now have Wiki's.  A lot of wiki's can do with a nice clean-up bot to do maintenance.  So the plan is this:

Write a wiki bot.

  1. Go from a specified page.
  2. When visiting a page
    1. Run rules on the page for formatting - RegEx replace
    2. If nothing is done, go to the next url
    3. Once a certain threshold of edits are reached per day, stop (did enough damage for one day - this also restricts the amount of wiki-recent-changes everyone sees every morning.  If the bot did 300 edit overnight people will miss the real edits)
  3. Make a list of the vist schedule.
  4. If there are no links, go to the home page and grab 5 random links.
  5. Keep this schedule in a section on the user's home page.
  6. Do one page, then update the home page with the visit schedule.
  7. User can update schedule.

Thoughts:

  • Haywire bots butchering the wiki
  • Authentication
  • Accessing the wiki via web service interface (if it has one)

Dell laptops in 8 colours

Nooooo they look so pretty.

I need to get another Dell Inspiron soon.

Last year I bought a DELL inspiron laptop, I had some initial problem with its LCD, but once I could convince the girl on the support line that there REALLY is a problem, and have them send a technician out to me, it was replaced quite quickly (and noisily - the whole office came around to see what's the screwing noise).

The repair tech told me that he's familiar with the issue and he's done a few similar repairs already (I wish the call centre could be a bit in touch with known problems with their hardware).

Anyway, ever since it was repaired I've had ZERO issues with my DELL (and I program, play WoW pretty much everyday on the thing).  I love it and I'm definitely going to get a DELL again.  (In fact I recommended my brother to get a DELL laptop last year and he did).

Now the choice of getting the perfect DELL laptop just got harder.  8 colours.  Damn...

Update

I wish it'd be easier to blog something about DELL.  Hello Dell are you listening?

Where's the DIGG/BLOG this button?

May be it's over in the Direct2Dell area