25 Topics

Member Avatar for
Member Avatar for karmstrong

0 down vote favorite I have created a network scanner, that looks for a specific port on a range of IP's. I would like to thread the application but I am getting and error message ERROR: for worker in range(network.hosts): TypeError: 'method' object cannot be interpreted as an integer Now …

Member Avatar for rproffitt
0
1K
Member Avatar for nabin634

Hi, i am using setExpirationSeconds() to set the timeout for user. but how to update the timeout timestamp in data base when user session expires automatically due to user inactivity. Regards, Nabin

Member Avatar for moneeshot
0
424
Member Avatar for swathys

Hi, am not a experianced coder, would like to seek for help. i would like to create a session logout. a pop out appear which able to count 60 sec " Warning your eMyHome session will expire in 60 seconds. Do you wish to continue?" with button continue & logout. …

Member Avatar for swathys
0
314
Member Avatar for cpchc

Hi there - I had written some php for users to login to a password protected part of our site. Today an SSL certificate was installed. Previous to the SSL being installed the pages would timeout and kick the user out to the login screen after a certain period of …

Member Avatar for patk570
0
280
Member Avatar for Webbsta

Hi guys, I currently have a custom network protocol I have written that uses the NetworkStream class. Within my protocol I have implemented a way to detect data that also works as a timeout. This seemed to be working fine until my client uploads an image of approx 24kb+ and …

Member Avatar for KushMishra
0
395
Member Avatar for eburlea

Hello. I have a function that checks the internet connection. I need to set a timeout to it. I have tried without success to do that. Please help. Here is the function: function isOnline() { if(navigator.onLine){ var uri = baseUrl+'ping'; var xhr = new XMLHttpRequest(); xhr.open('GET',uri,false); try{ xhr.send(); return true; …

Member Avatar for stbuchok
0
199
Member Avatar for chophouse

Using Python 3.3.0 and this script: from ftplib import FTP_TLS ftps = FTP_TLS('xxx.xx.xxx.xx') ftps.sendcmd('USER myuname') ftps.sendcmd('PASS mypwd') ftps.prot_p() ftps.retrlines('LIST') ftps.quit() I get a connection failure due to timeout >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "C:\Python33\fixFTP.py", line 2, in <module> ftps = FTP_TLS('xxx.xx.xxx.xx') File "C:\Python33\lib\ftplib.py", line …

Member Avatar for Gribouillis
0
2K
Member Avatar for chophouse

I'm writing a script to automatically up load a file from Server A to FTP server B. I'm getting stuck at the connecting part. I can connect with a python script using regular FTP, and have done so, but when trying to implement a SSL connection, I keep getting a …

Member Avatar for chophouse
0
3K
Member Avatar for jonsan32

What would I need to add to the code below to have the random redirect timeout for 5 seconds before triggering? <script type="text/javascript"> (function(n){ var pages = ['http://www.thestormybrain.com/2013/11/malcolm-gladwell-choice-happiness-and.html', 'http://www.thestormybrain.com/2013/11/steve-jobs-how-to-live-before-you-die.html', 'http://www.thestormybrain.com/2013/11/david-blaine-how-i-held-my-breath-for.html']; n = n < 3? 0 : n < 8? 1 : 2; window.location.replace(pages[n]); })(Math.floor(Math.random() * 10)); </script> I know …

Member Avatar for jonsan32
-1
539
Member Avatar for Vinodh_1

i am using the below code for creating the connection to database. connectionURL = "jdbc:oracle:thin:@//testdsfsdfgs:1521/TEST"; conn = DriverManager.getConnection(connectionURL, userName,Password); i want to set the transaction time out. How can i do that. Please some one help. Thanks in advance

Member Avatar for Vinodh_1
0
1K
Member Avatar for PhilEaton

Hi! I have a work Samba file server on Ubuntu Server 12.04. I can successfully add small files to it like docs and pdfs. However when I try to add a large file, for instance a 1.2gb video file, the server appears to timeout after appearing to be halfway completed. …

0
160
Member Avatar for mmcdonald

I have three scripts running under crontab and theyre executing perfectly (see the log below): Oct 9 10:40:01 servercharlie CRON[29850]: (root) CMD (php -q /var/www/folder/script-3.php) Oct 9 10:41:01 servercharlie CRON[29861]: (root) CMD (php -q /var/www/tasks/script-1.php) Oct 9 10:42:01 servercharlie CRON[29867]: (root) CMD (php -q /var/www/tasks/script-1.php) Oct 9 10:43:01 servercharlie CRON[29873]: …

Member Avatar for pritaeas
0
228
Member Avatar for selfmastery

I am running easyphp12 running mysql as a local db server for a some software. This software can also connect to a remote db where it doesnt give this error while performing the exact mysql query, so I only get the error when using the local db. Ive tried increasing …

Member Avatar for smantscheff
0
477
Member Avatar for steveh000

` connectionString="Data Source=########;Initial Catalog=DowntimeD51;Persist Security Info=True;User ID=#######;Password=########;Connection Timeout=120;Encrypt=False;TrustServerCertificate=False;Network Library=dbmssocn"` I have the above connection string in a vb windows application , This is part of my app config file. I then have a number of table adapters for connecting my business logic to the database , One of the queries …

Member Avatar for steveh000
0
809
Member Avatar for Casperjames

Hey all, writing some code but keep getting a javascript related "Not Implemented" error. The code is window.onload=setTimeout('loadAll()',10); The code works fine but the error is annoying in that "An error has occured.." keeps popping up. Oh how I love cross browser coding. Anyways, any input is appreciated, thanks!

Member Avatar for Casperjames
0
112
Member Avatar for mikenew1

I am trying to connect to an external server via FTP using windows explorer. On other computers I have no problems but on 2 computers, the windows explorer comes up and asks for the password as usual but will then run through twice and time out. Clicking on the refresh …

0
128
Member Avatar for cpchc

I am a web developer who has just had PHP thrust upon me. I have created a login-protected site and have put a timeout script on each page which redirects the user back to the login page if they have left the site idle for a certain period of time. …

Member Avatar for cpchc
0
508
Member Avatar for jstfsklh211

I hate websites that timeout and don't let you know about it this script pops up a message when you timeout and allows you to re-login in place

0
298
Member Avatar for _neo_

Actually I'm trying to open serial port to send logging data in j2me. When I connect my phone via usb cable to pc my code works correctly. But when I start app without usb cable connecting to phone it is hanging up. [CODE]private static void sendToSerial(String msg) { try { …

Member Avatar for _neo_
0
304
Member Avatar for phoenix911

Hi, I have a WCF Webservice, and I have an asp.net application that uses this web service. I Have them both running on the same machine, but get a time out. Is there something I have to specify myself in the web.config? I am fairly new in WCF, as this …

Member Avatar for phoenix911
0
187
Member Avatar for mmlmitchell

I have two tables: CDDemographics and CBTechProviderData. Both have 200,000+ rows. A common column between these tables is CensusBlockID, of which the first 5 integers are the fips code - in this case I am defining that code as 55001. I am trying to sum the population of CensusBlockIDs where …

Member Avatar for debasisdas
0
207
Member Avatar for carinilumpyhead

My friend has two HP desktop computers running Windows XP (SP3) in his living room and entertains many, many guests daily. Guests who do not usually carry laptop/netbook with them are allowed access to these computers and their internet connections without much supervision. Most of said users are very respectful …

Member Avatar for jak0b
0
174
Member Avatar for learning_php

Hi While learning how to create and manage a session, I got through session time out technique, I got throw 2 ways : 1. Setting up garpage collection directive in php.ini file and 2. Create a session variable named, say, EXPIRE that holds the value [code]$_SESSION['EXPIRES']=time()+360;[/code] at the beginning of …

Member Avatar for learning_php
0
189
Member Avatar for bben95

Could somebody please help me to add a function to this script in which the image to test if the server is up has a timeout, so it shows an error message to the user instead of just loading forever. The current function of the code is: Attempt to load …

0
131
Member Avatar for Usernamex235

Hi All, thanks in advance for any replies. Environment: PHP5, MySQL, Windows XP/Server 2000/Server 2003. Problem: Using shell_exec to run a small program connected to a database, waiting for it to finish and then outputting a file which was produced. All was fine until I got a new and larger …

0
154

The End.