|
Just purchased some VPS hosting and am getting setup to get my startup app underway. For the moment I'm playing sysadmin and am running into errors galore whilst trying to work out the kinks.
So I was wondering what the best solution (if any?) there is...
Started by Patrick McLaren on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
You want some type of system....
Also set up something like Nagios to alert on internal services, also set up to alert via sms, using a provider such as Clickatell .
Set up a Pingdom monitoring service to send you emails and SMS messages when things go wrong .
|
|
Can you remove an item from a List<> whilst iterating through it? Will this work, or is there a better way to do it?
My code:
foreach (var bullet in bullets) { if (bullet.Offscreen()) { bullets.Remove(bullet); } }
-edit- Sorry guys, this is for ...
Started by Chris on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
For (int count = bullets.Count - 1; count >= 0; count--) { if (bullets[count].Offscreen()) { //bullets.Remove(bullets[count... .
You need to iterate through it backwards with a for loop .
Attempting to remove it within a foreach loop will throw an exception .
|
|
Hey all,
Long time reader, first time poster :D
I'm having issues trying to read input whilst outputting at the same time. I need a server console for my game which can receive input whilst outputting and not mess up the buffer.
For example, I'm typing...
Started by Saul Rennison on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If it has to....
Kinda like how an irc client would look.
Instead of writing output directly to the console, why not spawn a GUI window?
Then, just have one area where output is directed, and a separate input area at the bottom where you can type commands .
|
Ask your Facebook Friends
|
I have an MFC application that spawns a number of different worker threads and is compiled with VS2003.
When calling CTreeCtrl::GetItemState() I'm occasionally getting a debug assertion dialog popup. I'm assuming that this is because I've passed in a ...
Started by Ian Hickman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Otherwise how would they know you clicked on the "OK" button?
If you need to stop everything when an assert triggers it's usually not too difficult to write your own implementation... .
Dialogs (even a messagebox) need to pump the message queue, even if they're modal .
|
|
Is there a built-in that removes duplicates from list in Python, whilst preserving order? I know that I can use a set to remove duplicates, but that destroys the original order. I also know that I can roll my own like this:
def uniq(input): output = [...
Started by jmglov on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Here you have some alternatives: http://www.peterbe.com/plog/uniqifiers-benchmark
Fastest one:
def f7(seq): seen = set() seen_add = seen.add return [ x for x in seq if x not in seen and not seen_add(x)]
EDIT:
If you plan on using this function a lot, ... .
|
|
In brief: Is there any built-in function in .Net 2.0 to Expand TreeNodes when hovered over whilst a Drag and drop operation is in progress?
I'm using C# in Visual Studio 2005.
In more detail: I've populated a Treeview control with a multi levelled, multinoded...
Started by G- on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It uses a DelayedAction class to handle delayed execution of an action on the main thread :
DelayedAction<T>
public class DelayedAction<T> { private SynchronizationContext _syncContext... .
EDIT
I have a new solution, a bit far-fetched, but it works.. .
|
|
I'm setting up a small vpn service for 10 - 100 expats so they can access normally blocked sites. I would like them to be able to sign up via my website, which upon payment the site will generate their client.cert, client.key and client.conf and perhaps...
Started by adam on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
I have a sneaking suspicion that the big CAs that provide "instant" SSL certificates are probably either relying on a 24x7 low-paid support person, or (more likely) just putting the CA key on a machine with extremely limited connectivity and only allowing... .
|
|
Xxx pic whilst gazing longingly at this site!
1 Attachment(s) This is my reaction whilst gazing at the lovely ladies on this site!
Started by TBBW on
, 18 posts
by 11 people.
Answer Snippets (Read the full thread at fat-forums):
Nice cock! wheres your.
Veryyyy sexy...
Veryyyy sexy...
Blush "Blush!" I love that you are naked and used the word "whilst".
|
|
Currently my program allows the user to enter 5 integers which are used to create an average number. This is set to five as after the fifth number is entered the loop is broken.
I am trying to implement a method which will let the user continue to add...
Started by Jamie Keeling on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You don't, ....
In terms of code simplicity, you might want to check out the realloc() function; you can allocate an initial array of some size, and if the user enters too many numbers call realloc() to get yourself a bigger array and continue from there .
|
|
I create silent software installation packages for customers. This is pretty straight forward if the installation is a simple file dump, or add service and start; but a lot more difficult if customer instructions (and payload media), are gui based - '...
Started by Lorry on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
I assume since you mentioned a "setup.exe" you mean on Windows, so...... .
What is the software? Perhaps I can find it for you .
Run the setup from the command line
setup.exe /?
to see if there are silent switches .
Most software has silent install options.
|