You are viewing rpresser

Environment: Windows 2008 Server, IIS8, ASP.NET
  • Obviously, install a commandline SVN client on the server, like SlikSVN.  Write a batch file that performs the update.
  • In task scheduler, create a scheduled task that triggers on a specific eventID in the eventlog. This task should run a batch file which performs the update. Have the task run with elevated privileges.
  • Add an ASPX page to your website that writes an entry to the eventlog using that eventID.
  • Protect the ASPX page in IIS (or in web.config) using a password.
This way, you don't have to have ASP.NET call the batch file directly, with the attendant security issues.

For added fun, you can have the web page post one of several eventIDs, based on the querystring. Set up a scheduled task for each one. Now you can have one website able to force updates on many related ones.

And obviously, this trick works if you want to trigger some other schedulable task, like an app recycle, or disabling/enabling a site, or connecting to a VPN, or an extra backup, anything really.

Tags:

Nobody will read this.

But I don't want my account to be "suspended", whatever that is. 
This was posted as a comment on Mark Russinovich's blog entry. Of the last 3 comments I've posted there, Mark has only seen fit to approve one. Therefore I'm copying it here.

Now that VMMap can actually RUN on my 32-bit Windows XP, thanks to today's update, I can do as you asked and look at the stack resources.

I ran testlimit -t and hit control-S after a few seconds; the thread count was already up to 7100. I started VMMap and attached to the testlimit process. 

The first thread stack was Size=256K, committed=12K; the remaining 7199 or so thread stacks were all size=64K, committed=8k.  Total stack shown in the upper summary area had size=461,056K, committed=57,612K; free showed Size=1,595,268K.

If I let it run and it continues at this pace, I compute it should generate at least 30,000 threads. Letting it run ...

Created 30645 threads. Lasterror: 8

My recollection is that when I tried this right after your blog post, I got over 50,000 threads. Later today I am going to shut down all unnecessary programs and services and try this again.

Given this result, do you think you should revise your blog entry? Like I said, I haven't done anything to tweak the system to get these results. It's a stock Dell system; 3GB of RAM; the processor is 64-bit capable but running 32-bit Windows XP; no /3GB or any other boot switches.

(Since the last few times I've posted to this blog, my comment has been ignored, I am going to post this same comment as a blog entry on my LJ, rpresser.livejournal.com.)

Tags:

Note this date!

rpresser (2/11/2009 3:07:37 PM): using addImageDoc preserves RGB and lets me crop. Good plan.
gsalzman@sbcglobal.net (2/11/2009 3:07:53 PM): you mean CMYK?
rpresser (2/11/2009 3:08:00 PM): yes, sorry
gsalzman@sbcglobal.net (2/11/2009 3:08:03 PM): phew
rpresser (2/11/2009 3:08:04 PM): preserves CMYK
gsalzman@sbcglobal.net (2/11/2009 3:08:18 PM): let the record show that I figured out a solution to a problem...
gsalzman@sbcglobal.net (2/11/2009 3:08:23 PM): instead of creating a new problem
rpresser (2/11/2009 3:08:37 PM): I'll blog it immediately
gsalzman@sbcglobal.net (2/11/2009 3:08:39 PM): well...I guess we could find out that this creates a new problem

Track all my LJ comments, everywhere?

Is there any way to find all the LJ comments I've made, no matter whose LJ they were on?

Was there any doubt?

Your result for The Nerd? Geek? or Dork? Test...

Outcast Genius

65 % Nerd, 57% Geek, 70% Dork

For The Record:



A Nerd is someone who is passionate about learning/being smart/academia.

A Geek is someone who is passionate about some particular area or subject, often an obscure or difficult one.

A Dork is someone who has difficulty with common social expectations/interactions.



You scored better than half in all three, earning you the title of: Outcast Genius.



Outcast geniuses usually are bright enough to understand what society wants of them, and they just don't care! They are highly intelligent and passionate about the things they know are *truly* important in the world. Typically, this does not include sports, cars or make-up, but it can on occassion (and if it does then they know more than all of their friends combined in that subject).



Outcast geniuses can be very lonely, due to their being outcast from most normal groups and too smart for the room among many other types of dorks and geeks, but they can also be the types to eventually rule the world, ala Bill Gates, the prototypical Outcast Genius.



Congratulations!



THE NERD? GEEK? OR DORK? TEST

Take The Nerd? Geek? or Dork? Test at HelloQuizzy

That's all right, it doesn't matter. Just me.

Your result for The Deep and Meaningful Winnie-The-Pooh Character Test...

Eeyore

"Do you know what A means, little Piglet?"

"No, Eeyore, I don't."

"It means Learning, it means Education, it means all
the things that you and Pooh haven't got. That's what A means."

"Oh," said Piglet again. "I mean, does it?" he
explained quickly.

"I'm telling you. People come and go in this Forest,
and they say, 'It's only Eeyore, so it doesn't count.' They
walk to and fro saying 'Ha ha!' But do they know anything about
A? They don't. It's just three sticks to them. But to the
Educated--mark this, little Piglet--to the Educated, not
meaning Poohs and Piglets, it's a great and glorious A.

You scored as Eeyore!

ABOUT EEYORE: Eeyore lives in his own thistley corner of the forest and wonders why people don't come to visit him more often. He is master of the Guilt Trip, and is always gently forgiving his visitors for neglecting him. Eeyore considers himself to be smarter than the other inhabitants of the Hundred Acre Wood, and is often exasperated by their habit of having adventures and general merriment.

WHAT THIS SAYS ABOUT YOU: You are an anxious person, and you tend to expect the worst. Your friends find you somewhat cynical at times, because you have found that it is best to expect disappointment. You often feel unappreciated by the people you work with, but you rarely actually try and do anything to change that fact.

Your close friends admire you more than you think they do. They wish that you would learn to stop worrying so much and actually start trying to fix what is bothering you. If something is making you unhappy... change it!

Take The Deep and Meaningful Winnie-The-Pooh Character Test at HelloQuizzy

(linked from james-nicoll)

Tags:

Cygwin script for making ISO files

A quick shell script for Cygwin, for ripping a data CD or DVD to an ISO file. Don't try it with audio CDs or movie DVDs.



#!/bin/bash
VOLUME=`cmd /c dir d:|dos2unix|head -1|sed -e s/.*\ is\ //`
dd if=/dev/scd0 of="$VOLUME.iso" bs=16M &
P=$!
while test -d /proc/$P
do
  clear
  date
  echo Dumping /dev/cd0 to $VOLUME.iso
  kill -USR1 $P
  sleep 30
done
echo 'Dump complete.'

Tags:

Thank you!

A terrific song I heard this morning, from the band 33 Miles. Wonderfully upbeat. Lyrics. music and video.
thank you for everything
thank you for loving me
it don't even matter what tomorrow brings
well i will sing my

thank you for sun and rain
for what you give and take away
for all your goodness i will always say
thank you
oh, i said thank you

Food for thought

I got some advice from a very unexpected source: an Internet acquaintance who I don't know at all. Shown below:

All that matters, instance by instance, is if you are doing that which is good.

First, define good. If you buy Christianity, good is definable, and usually involves loving others unconditionally and submitting to the Lord. Fairly simple in truth and practice as long as you keep the instant by instant, step at a time mindset.

He said love others. Do it. This usually looks like listening to them and helping them cope.

He said love Him, that looks like talking to Him like He's there. Prayer, talking to G-d.

He said listen to Him. That's kinda tricky, since He already did the key point address. If you missed it, read it all. Find a translation you can cope with and read it as you can.

Talk about Him. You talk about other stuff you love with other people of like mind.

Look at the vast beauty of nature and appreciate that feeling of awe. That is worship.

Profile

scowl
rpresser
Ross Presser

Latest Month

December 2010
S M T W T F S
   1234
567891011
12131415161718
19202122232425
262728293031 

Syndicate

RSS Atom
Powered by LiveJournal.com
Designed by chasethestars