Hi all;;; please can anyone help me , when i opend my java program i wrote it previously ,,,i see the red line in the editor and code dosent exist ????and the error that appear : illegal character: \u000. I am very sad for this because my program ia too long and i can't write it again .... please i want help to recovery my code......!!!!!!

Member Avatar
Member Avatar
+0 forum 7

I'm trying to run a python script from the cron but get the error "No module named requests" Traceback (most recent call last): File "testscript.py", line 2, in <module> import requests ImportError: No module named requests The script will run from the console but not through a cron job. I have seen somewhere that the environment settings are different between the two methods. Requests is installed in the ./lib/python2.7/site-packages directory but the script can't seem to access it. I have no experience in Python so would appreciate some pointers.

Member Avatar
Member Avatar
+0 forum 6

Hi every one I am trying to upload a file on server but it is not uploading and always giving an error HEre is code. Please help. Its urgent [CODE] <?php session_start(); if(!session_is_registered(username)){ header("location:login.php"); } if($_REQUEST['title'] != '' && $_REQUEST['type']!='' && $_REQUEST['category'] != '' && $_REQUEST['sub']!=''&&$_REQUEST['elm3'] != '') { require("db.php"); $cat = $_REQUEST['category']; $title = $_REQUEST['title']; $sub=$_REQUEST['sub']; $author = $_SESSION['username']; $type = $_REQUEST['type']; $desc = $_REQUEST['elm3']; $arr = explode(".", $filename); $ext = $arr[count($arr) - 1]; $msg = ""; $fname = $_FILES['file']['name']; $arr = explode(".", $fname); $ext = $arr[count($arr) - 1]; $size = filesize($_FILES['file']['tmp_name']); print_r($_FILES); if ($size > 70 * 1024 …

Member Avatar
Member Avatar
+0 forum 8

i had been trying out the client server program. the client exit or crash by itself when connection establish with server. this error code 10045 being use inside the server code as the socket exception, but why the client still exit automatically? server side code: [CODE] catch (ObjectDisposedException) { System.Diagnostics.Debugger.Log(0, "1", "\nOnDataReceived: Socket has been closed\n"); } catch (SocketException se) { if (se.ErrorCode == 10054) // Error code { string msg = "User no." + socketData.m_clientNumber + " Disconnected" + "\n"; AppendToRichEditControl(msg); // Remove the reference to the worker socket of the closed client // so that this object will …

Member Avatar
+0 forum 0

Right now my program says there is an error in line 27 of this code: [CODE]Class Netflix: public class Netflix { private static void main(String[]args) { String comedy, horror, drama, action, genre1; Movie a = new Movie(); a.setTitle("Avatar"); a.setCast("Sam Worthington"); a.setGenre('a'); a.setYear(2009); a.setStars(3); Movie b = new Movie (); b.setTitle("Battle Los Angeles"); b.setCast("Aaron Eckhart"); b.setGenre('a'); b.setYear(20011); b.setStars(5); String stars1; if (a.setStars(5)) stars1 = "*****"; else if (a.setStars(4)) stars1 = "****"; else if (a.setStars(3)) stars1 = "***"; else if (a.setStars(2)) stars1 = "**"; else if (a.setStars(1)) stars1 = "*"; switch (a.setGenre())[/CODE] This code contains the main method and needs to display …

Member Avatar
Member Avatar
+0 forum 7

Hi: I am working on a clients PC and when I raise the memory from 512 MB to 1.5GB the whole system crashes. The RAM on the system is DDR PC2700 and on the other side it says 64X64 PC3200 DDR. The additional RAM I tried to put in is 1GB PC-3200 CL3 400MHz. My client is wanting to install an application that strengthens her mind and it requires a minimum of 64MB on the video card and 1 GB of Ram. I tried to find out about the information on the computer with the DxDiag tool but received no …

Member Avatar
Member Avatar
+0 forum 10

Hi everyone, I am getting this error: [CODE]Msg 512, Level 16, State 1, Line 1 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. The statement has been terminated.[/CODE]please help, I have tried to solve it on my own but still can't find the right answer.. this is the query: [CODE][update tbl_M_MasterLogs set rptprobtype = (Select [Problem Type] from tbl_rpt_MasterData where tbl_M_MasterLogs.CaseNo = tbl_rpt_MasterData.CaseNo)[/CODE] Thank you very much in advance!

Member Avatar
Member Avatar
+0 forum 1

i keep getting this error: [icode] error: expected ‘)’ before ‘,’ token[/icode] this is the code i'm using: [code=c] dragon(string str = "wild dragon", int level = 5);[/code] this is inside a the dragon class definition. [code=c]dragon::dragon(str,level) { name = str; tp = ((rand() % 6) + 1); type = tp; lvl = level; setatk(); setdef(); setexpmax(); sethpmax(); hp = hpmax; setacc(); setout(false);/* set to conscious */ }[/code] this is where the class is instantiated: [code=c]pets[i] = new dragon(name,level);[/code] the variables name and level where assigned earlier in the loop. could someone give me a hint where i'm going wrong? …

Member Avatar
Member Avatar
+0 forum 4

I'm trying to bridge my laptop to my xbox and it worked the first time but when i tried to do it again i opened my dongle properties, went to advanced and tried to enable ICS it comes up with [B][U]error 1003: cannot complete internet connection sharing[/U][/B] when i try to turn my firewall off to connect it comes up with [U]"[B]windows firewall settings cannot be displayed because the associated service is not running[/B]"[/U] or " [B][U]cannot stat F/ICS service[/U][/B]" any help with this would be greatly appreciated

Member Avatar
+0 forum 0

Whats wrong with how this is coded to were it is allowing anything to be inputted without recognizing errors? [CODE]$errors=0; $error="The following errors occured while processing your form input.<ul>"; pt_register('POST','ip'); pt_register('POST','date'); pt_register('POST','Text'); pt_register('POST','URL'); $healthy = array("$", "%", "!", "<", ">"); $yummy = array("", "", "", "", ""); $Text = str_replace($healthy, $yummy, $Text); $URL = str_replace($healthy, $yummy, $URL); if($URL=="http://www.") { die ("<center><br><br>Please enter a valid URL. Please go back and try again</center>"); } else { // yay } if($Text=="My awesome site!") { die ("<center><br><br>Please enter something besides 'My awesome site!' for your URL text. Go back and try again.</center>"); } else …

Member Avatar
Member Avatar
+0 forum 1

when i run my code...this error come out [QUOTE]"data type mismatch in criteria expression"[/QUOTE] here my code: [CODE]Private Sub Text2_Change() TXT1 = "" TXT1 = "SELECT * FROM Profile WHERE sID =' " & Text2 & "'" If RS.State = 1 Then RS.Close End If RS.Open TXT1, Conn, adOpenKeyset, adLockOptimistic If RS.RecordCount > 0 Then txtText2 = RS.Fields(1) txtName = RS.Fields(2) txtDateOfBirth = RS.Fields(3) txtAddress = RS.Fields(4) txtIC = RS.Fields(6) txtContact = RS.Fields(5) cboStatus = RS.Fields(9) txtAge = RS.Fields(8) txtCourse = RS.Fields(11) cboFaculty = RS.Fields(10) txtMatric = RS.Fields(7) txtLicense = RS.Fields(12) txtEngine = RS.Fields(13) txtNoPlat = RS.Fields(15) txtModel = RS.Fields(16) …

Member Avatar
Member Avatar
+0 forum 13

How can I get error message? [CODE] try: ...# some operations except: sock.sendto(err_msg,0,addr) # send client err_msg from exception [/CODE]

Member Avatar
Member Avatar
+0 forum 3

The End.