Hi all,
I've just started writing the most basic bot ever, namely the hello_bot :) Basically it is supposed to log into a channel and greet it...
This is the source code I have:
use Net::IRC;
$irc = new Net::IRC;
$conn = $irc->newconn(
Nick => 'DCPTestBot',
Server =>...
LOL Just before you posted this I found the answer myself..
Anyway thanks for the answer and your time!
- Raenius
ps. Next time I'll do more research for opening a post. Oh well maybe someone else will benefit from this thread ;-)
"Free will...is an illusion"
Hi all,
Currently I am working on a SQL query which I can't seem to get working properly.
I want to gather distinct data from a table with a timestamp of 5 minutes before localtime.
I've gotten so far:
SELECT DISTINCT ROUTERS.name AS Router_Name
FROM ROUTERS INNER JOIN...
Hi,
In regards to Obislavu's first answer:
"Another solution is to use another timer which will watch the PingThread termination by querying the ThreadState of the PingThread object. If the ThreadState was Running and now is Stopped that means the PingThread finished and you can take create...
Can't you make a global class where you define your global variables like:
using System;
namespace YourNameSpace
{
public class Globals
{
// SQLConnectionString
public static string SqlConnectionString = "";
}
}
Then you can call this Global using:
Globals.SqlConnectionString;
-...
If the main program would remain waiting until the thread finishes thus nullifying the idea of threading right?
If I were to implement a second timer which would check for the PingThread to be finished for like every 10 ms wouldn't that cause a performance problem?
The PingThread is handlike...
Hi all,
I'm stuck with my application with regards to starting and stopping a timer based on whether a thread is finished or not.
In my main program there is a timer and when it is triggered it:
- stops the timer
- spawns a thread which goes about pinging IP addresses and updating a database...
I think I have localised the error to indeed the:
serverHE = Dns.GetHostByName(host);
and after that the:
[code]
IPEndPoint ipepServer = new IPEndPoint(serverHE.AddressList[0], 0);
EndPoint epServer = (ipepServer);
Weird thing is that it does not give any exceptions! :'(
I hope that someone...
Hi,
Here is some sample code for Reflection:
/**
* File: ReflectTypes.cs
* Article: C# Reflection and Dynamic Method Invocation
* Copyright (c) 2000, Gopalan Suresh Raj. All Rights Reserved.
* Compile with: csc ReflectTypes
* Run as: ReflectTypes <library>
* eg., ReflectTypes...
Hi all,
I am working on incorporating the C# ping Utility from http://www.csharphelp.com/archives/archive6.html into my own winform program.
I had to adjust some things (variables etc) for it to work but never mind that. I am currently calling the function with IP addresses I get out of my...
And indeed it was a trailing spaces issue, very weird because I thought that I had excluded this in my database updates...strange..
No worries everything is working fine now... up to my new part of the program which is Email validation with a regex in a textbox...
Thanks for the help!
-...
Equals method still gives the same result.
Trimming the Padding I am now trying..
Basically what happens before this is that an query is made to a database and the string audio_en is declared via the sqldatareader..
"Free will...is an illusion"
I am still having problems with the resizing of the column width according to the size of the largest field.
On my winform_load the datagrid is initialised and displayed using the following code:
try {
SqlDataAdapter da = new SqlDataAdapter("SELECT name AS Router_Name FROM ROUTERS"...
Hi all,
On the load of a windows form I run some quesries against a database and extract some fields. For example if a certain settings is to be enabeled or not.
If you look at the following code:
// Audio Tab Page settings
string msg2 ="Audio_enabled: " +audio_en...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.