|
Swythan wrote:
I'm on an NT Domain at work and the dropdown list in the Options dialog for "MachineName" seems to be showing mostly blanks. There are a couple of enrties, but I think they are for machines that aren't members of the domain.
Argg, no way for me to test it . That code (for the machine name) was even tested with some people I chat to on the internet. Unfortunately, I will not be able to ever (in the near future anyways) test this. All I can hope is some CPian mite do me a favour....
Anyways I will have a look, I limited the list to 20 entries and I dont think I'm checking for "" blanks . I will add some stuff, and mail u a copy. Perhaps we can make it work
Cheers
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|
|
Hi,
I was looking on that thread (and many others!) while back from travel. Looks like (at least a little...) a bit as a Unicode thing...
Regards...
Eric
|
|
|
|
|
Same problem here, 4 names show up, but more blanks. I can select Interface after a few restarts and leave machine name blank.
|
|
|
|
|
It works for me, I am on a 2003 domain running it on an XP Pro SP1 all updates box and it shows both the server and my desktop (only 2 computers on the network)
btw, this is pretty cool!!!
Matt Newman
If you chose to continue this discussion, I am fully prepared to make you my bitch. I invite you to ask around, and you'll find out that I'm quite capable of doing so - John Simmons on Trolls
|
|
|
|
|
Very good one. *thumbs up*
I have a small suggestion though.
1. Delete the MyDUMeter.config first and run the app.
2. It brings up the Options Dialog
3. Don't select any item from "Interface" combo.
4. Now try to close the options dialog by clicking X, it will bring the Options Dialog again.
Instead of doing that, display a message box with message like this "Interface is missing" (something like that)
I know you mentioned about it in the article, somehow I missed it.
When I ran the app first time I tried to couple of times closing the options dialog, but it kept on displaying the same dialog. Then I killed the app and read your article again. Then I read your comments "When running MyDUMeter for the first time the option dialog should popup that allows you to select you interface."
Follow live World Cup Cricket scores here[^]
|
|
|
|
|
Kant wrote:
Instead of doing that, display a message box with message like this "Interface is missing" (something like that)
Done Will now display "User Error"
Kant wrote:
Follow live World Cup Cricket scores here[^]
static DateTime last;
private string[] GetScores()
{
if ((DateTime.Now - last).TotalMinutes >= 1)
{
last = DateTime.Now;
WebClient wc = new WebClient();
Stream str = wc.OpenRead(@"http://www-rsa.cricket.org/link_to_database/NEW/LIVE/scores.html");
string html = "";
int read = 512;
byte[] buf = new Byte[read];
do
{
read = str.Read(buf, 0, read);
html += System.Text.Encoding.Default.GetString(buf, 0, read);
}
while (read > 0);
str.Close();
wc.Dispose();
string[] lines = html.Split('>','<','\n');
scorestore = new string[]{lines[207].Replace("\t"," "), lines[224],
lines[227].Replace("\t"," "),
lines[228].Replace("\t"," "),
lines[229].Replace("\t"," "),
lines[230].Replace("\t"," ")};
}
return scorestore;
} What I have for my IRC bot
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
|
Kant wrote:
Care to explain bit more about your IRC Cricket bot?
The IRC is just a plain commandline app based on the Thresher IRC library. I have adapted it a bit, and made a plugin system for it (see my Plugin Manager article). So now if some one "shouts" (says) "score" in a line , my bot just sends each line from the array returned from that function into the channel it was said in.
Basically the function just rips the neccessary parts from a rather static webpage. O and it checks at most most every minute (the HTML page only updates every 60 seconds). I know it rough and will probably fail to work, but it DOES still work Ahh you just gave me a great idea Realtime crickets scores as a explorer band. Hmm. Coming soon.
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|
|
leppie wrote:
O and it checks at most most every minute (the HTML page only updates every 60 seconds).
leppie wrote:
I know it rough and will probably fail to work, but it DOES still work Ahh you just gave me a great idea Realtime crickets scores as a explorer band
I can't wait.
Hope you can do it before the Worldcup Cricket is over.
Follow live World Cup Cricket scores here[^]
|
|
|
|
|
...any suggestions?
|
|
|
|
|
|
http://pepper.idge.net/netload-1.0.zip is almost same thing as this program without the extra logging features, and its in C++ ~
Of course it isnt nearly as configurable as MyDuMeter, but the source is there, feel free to hack on it.
|
|
|
|
|
Sweet I'll have a look since I'm starting to wonder into that land.
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
|
|
Here we go, always the same error since version 1.0...
"Application has generated an exception that could not be handled.
Process id=0x19e4 (6628), Thread id=0x19e0 (6624)
Click OK to terminate the application.
Click CANCEL to debug the application."
I have the newest .NET framework but I don't have .NET, I am used to the old stuff and I don't like .NET that much .
I hope you can explain what I do wrong, I installed the framework again but that didn't help me either!
|
|
|
|
|
Rentier wrote:
I hope you can explain what I do wrong
I'm sorry but I cant. This is built for .NET 1.0, I think you are using latest beta (1.1) maybe? I could email you a debug build if you dont have VS.NET or make a makefile for it. This will allow you to step thru the source in the GUI debugger. Perhaps that can give more clues...
Cheers
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
Uhh it's built for 1.0...
Yes, I have the newest 1.1 but I don't think that should be a big deal, I had 1.0 before and updated to 1.1 when I saw that error!
Problem is that I don't have .NET, I'll stick with 6 as long as possible because I don't like the fact that people have to download a real big Framework for nothing new and I also don't have the money atm...
But if you would mail me I would let the debug build run and see what's wrong.
rentier@caleri.de
|
|
|
|
|
Hi,
Looks cool from the demo (not checked the source yet, sue me ), however there seems to be a little bug . When minimizing the meter, by right clicking the titlebar -> minimize, an ArgumentException is being thrown (Invalid parameter used).
|
|
|
|
|
Thanks for the input. It seems one cannot changed the size of a control while it is minimised. I'll add the fix soon , for the time being you can redone this following:
private void ReportForm_Resize(object sender, System.EventArgs e)
{
try
{
graph = new Bitmap(720, pictureBox1.Height);
Size = new Size(724, Size.Height);
DrawGraph();
}
catch (ArgumentException){}
}
As far as I can see the is no way of knowing when a form is minimised... Did I miss something?
Cheers
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
leppie wrote:
As far as I can see the is no way of knowing when a form is minimised... Did I miss something?
Sure you can . myForm.WindowState is an enum of the type FormWindowState. Just check if it equals to FormWindowState.Minimized . By the way, the exception was raised for me when the form was normal sized, and I used the contextmenu on the titlebar to minimize the form.
|
|
|
|
|
Wilco B. wrote:
Sure you can . myForm.WindowState is an enum of the type FormWindowState.
Whahahhaha eish I cant believe. How did I miss that one?
Wilco B. wrote:
By the way, the exception was raised for me when the form was normal sized, and I used the contextmenu on the titlebar to minimize the form.
The resize event fires after the for has been maximized or minimised. Thats why it happened (and because the PisctureBox.DockStyle is set to Fill).
Thanks
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
Hi again ,
Sorry for bothering again (;)), but I think you fixed this only on the report form, and not on the main form? . (not that none can fix it themselves but hey )
|
|
|
|
|
Wilco B. wrote:
but I think you fixed this only on the report form, and not on the main form?
But the mainform does not show in the taskbar... Neither will it minimise (unless you have altered the code) thru click the minimise all button. Im not sure what you mean?
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
Heh, if you right click on the titlebar of the mainform (not the taskbar, cause indeed there's none ), you'll get a contextmenu, in which you can minimize .
|
|
|
|