Hi,
moving s.settimeout(2) before s.listen(5) doesn't seem to make any difference, neither in IronPython or Python.
User Profile
Collapse
-
Socket timeout in IronPython
Hi,
I hope it's ok for me to place an IronPython question in this forum(?).
I am running IronPython 1.1.2 and Python 2.5.
OS is Windows XP SP3.
Currently I'm developing a lightweight test framework. In short, there are two scripts that control one hardware device each. The hardware devices are communicating wirelessly. I am using IronPython because I am then able to use some needed .NET libraries seamlessly.... -
Your last post didn't really clearify what you are looking for. If you could please add a few lines of explanation, then you would have a greater chance of getting the right answer....Leave a comment:
-
I have experience with setting up and using Nagios as the monitoring software for a large network of switches and servers. It is absolutely worth looking into. Nagios is open source software, and can be downloaded from sourceforge.net ....Leave a comment:
-
To me that sounds like an issue with the wireless encryption, maybe you have the wrong password for logging onto the network. Try logging into the router (with a cable or through another computer) and check the wireless encryption settings. For troubleshooting you can try temporarily disabling the encryption....Leave a comment:
-
Hi!
I would recommend Cygwin. It is a popular "linux-like" environment for Windows, and it implements POSIX and a large collection of applications equivalent to those found on unix/linux....Leave a comment:
-
Here is a one-liner for the same job:
Code:cat test.text | echo -n $(awk {'print $0 "|"'}) | sed -e 's/\ *//g'
Leave a comment:
-
Hi!
In your schedule you'll need to specify an application or a script that does the task of calling your remote script url.
You could for example call a web browser with the url as argument. A more elegant alternative would be to write a VB script to call the url. An example VB script can be as follows:
Code:'scriptfile.vbs Call LogEntry() Sub LogEntry() On Error Resume Next Dim objRequest
Leave a comment:
-
The problem here is the expression if ( $year / 4 ). This test will return true as long as it is a valid division, which in this case is true for all values of $year. What you want is a test that returns true when the division does not give any remainder. You can use the modulo operator for this:Code:if ( $year % 4 == 0)
Leave a comment:
-
Instead of matching with .*, you could match with [^\"]*. That way you will only match until first occurence of \".Code:$_reg = '#\"http://([^\"]*)\"#'; // regular expression
Leave a comment:
-
The code you gave compiles fine on my system. How do you invoke the compiler? gcc <filename>?Leave a comment:
-
Hi,
one solution is to make a simple shell script. Put the following in a file called e.g. mygrep:
Code:!/bin/sh search=$1 #Use first argument as searchword shift 1 #Remove searchword from argument list grep $search $* | awk -v search="`echo $search`" {'print search ": " $0'}
Leave a comment:
-
Thanks for your reply.
The overload Color.FromArgb( r, g, b) does not quite cover my needs as I want to be able to use alpha components also below 0xFF.
I found out that by placing the variable assignment inside an unchecked scope, it will compile:Code:unchecked { Int32 argbValue = (Int32)0x9FFF0000; Color c = Color.FromArgb(argbValue); }
Leave a comment:
-
C#-FORM: Problem using the function FromArgb(Int32)
Hi,
I am trying to use the function Color.FromArgb( Int32). The Int32 is on the format AARRGGBB, where AA is the alpha component.
My problem is that when I want to specify a solid color I need to give the alpha value FF, but that will not fit in an Int32 value (e.g. 0xFFFF0000 for solid red), since the largest Int32 value is 0x7FFFFFFF. How can I define a (near) solid color using this function?
No activity results to display
Show More
Leave a comment: