199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for chern4ever

i would like to read some data and display it in textbox. my example of data in my txt file are: "moviename1", "movieshowtime1" "moviename2", "movieshowtime2" when i display it in text box, it shows exactly like above. i want it to display without the quotes. how i can achive tat? …

Member Avatar for Jx_Man
0
3K
Member Avatar for WaltonPan

import java.util.Scanner; public class array_Project { int index; Scanner scan=new Scanner(System.in); System.out.println("Enter index number"); int[]Project={10,15,20,25,30,35,40,45,50,55}; } public class array2 { switch (int index) { case 1: if(index=0) { System.out.print(Project[0]); } break; case 2: if(index=1) { System.out.print(Project[1]); } break; case 3: if(index=2) { System.out.print(Project[2]); } break; case 4: if(index=3) { System.out.print(Project[3]); …

Member Avatar for aravind326
0
248
Member Avatar for OsaMasw

Hello guys, have a nice day... I've created function to test if the user is admin or not and return true or false depending on user function isitadmin($userid) { $query = mysql_query("SELECT * FROM users WHERE user_id = '". $userid ."' AND level = 1"); if (mysql_num_rows($query) > 0) { …

Member Avatar for OsaMasw
0
174
Member Avatar for James79

Help is needed. I've encountered errors as follows *Syntax error in file /home/common/bin/NEL_MailHouseKeeper.pl at line 3, next 2 tokens "my $PATH " Syntax error in file /home/common/bin/NEL_MailHouseKeeper.pl at line 122, next 2 tokens "my $FLAG_PRINT " Excution of /home/common/bin/NEL_MailHouseKeeper.pl aborted due to compilation errors.* #!/usr/contrib/bin/perl my $PATH = "/var/mail"; my …

Member Avatar for James79
0
258
Member Avatar for jetro57070

how do you manually convert a multi digit ascii string into the hex equilavent of a decimal integer with out using a C library function. For instance If I have a small program asking a user to type into the keyboard a decimal number and lets say they type in …

Member Avatar for jetro57070
0
7K
Member Avatar for kaywt

I have the following code that I need to figure out what the output will be. Whenever I try to run it I get an debug error - and it crashes... Somebody else said that it ran fine on their Apple machine. I just need to see what the output …

Member Avatar for kaywt
0
227
Member Avatar for marc.punzirudu

ok, im working on an assignment implementing a circular queue (fixed size 15), shared memory, normal producer consumer problem, using three semaphores (one for the queue and one for each process). The objective is to have the producer put the characters from mytest.dat (max 150 chars) into a circular queue, …

Member Avatar for marc.punzirudu
0
2K
Member Avatar for yous

Hi Guys Can anyone give me an example on how to retrieve the value 16 in bold under the tagname <td>In process</td> with a webbrowser and insert this value to a texbox. Thanks <tbody> <tr class="odd"> <td>In Process</td> <td class="number">***16***</td> <td class="number">1</td> <td class="number">01:16:48</td> <td class="number">02:54:00</td> <td class="radio"><input type="radio" name="queue" …

Member Avatar for TnTinMN
0
283
Member Avatar for NardCake

Hello! This is the most annoying thing to me, I need redirections with Javascript often but `window.location` Doesn't work in chrome? I could swear it used to because I have just noticed this problem. Here is what I do `window.location = "http://mywebsite.com";` Works in Firefox, but not chrome? (I don't …

Member Avatar for NardCake
0
10K
Member Avatar for mIND.dEcEpToR

public string getContent(string webAddress) { HtmlAgilityPack.HtmlWeb web = new HtmlAgilityPack.HtmlWeb(); HtmlDocument doc = web.Load(webAddress); return string.Join(" ", doc.DocumentNode.Descendants().Select(x => x.InnerText)); } Am using this function trying to check what does the function do! But am getting the exception which tells me the function Decendants does not exist in the current …

Member Avatar for Momerath
0
181
Member Avatar for saurabh.mehta.33234

Can anyone give a simple code to explain the statement"a funtion ca have multiple declaration but only one definition"?

Member Avatar for marc.punzirudu
0
163
Member Avatar for saurabh.mehta.33234

Why is it compulsory and necessary to initialize static variables during compile time only?

Member Avatar for marc.punzirudu
0
202
Member Avatar for zachattack05

So I downloaded the [Adventureworks 2012 SQL database](http://msftdbprodsamples.codeplex.com/releases/view/55330) to browse hoping to find something interesting and just nearly fell asleep looking at example data when I came across something new or that I at least never noticed before...a field with a data type of "xml(CONTENT Person.AdditionalContactInfoSchemaCollection)" and when viewing the …

Member Avatar for zachattack05
0
214
Member Avatar for apanimesh061

<!DOCTYPE html> <html> <head> <script type="text/javascript"> function ShowFile(sFilePath){ var oFileSystem = new ActiveXObject("Scripting.FileSystemObject"); frmEditHTML.tarHTMLText.value = oFileSystem.OpenTextFile(sFilePath.value).ReadAll(); } function SaveAfterEditing(sFilePath){ var oFileSystem = new ActiveXObject("Scripting.FileSystemObject"); var oFile = oFileSystem.CreateTextFile(frmEditHTML.filPath.value,1); oFile.WriteLine(sFilePath.value); oFile.Close(); } </script> </head> <body> <form name="frmEditHTML"> Select the HTML File you want to Edit <input type=file name="filPath" onchange="ShowFile(this)"> <textarea name="tarHTMLText" …

Member Avatar for diafol
0
473
Member Avatar for NoUserNameHere

Is it possible to point to a certain index of a value? For example, int x = 2576, is it possible to do something like x[2]? I know you can do it with strings, but can you do it with numbers?

Member Avatar for NoUserNameHere
0
94
Member Avatar for mpc123

HI I seem to have a problem with a drop down menu, the code seems to work fine and the values are showing in source code but do not show on the page???? Another issue is I dont know how to move forward after this to make a combo drop …

Member Avatar for AleMonteiro
0
192
Member Avatar for diya45

WHEN I RUN AND CLICK ON IN ONE ROW THEN THERE IS AND ERROR ON IT HO TO SOLVE THIS AND ERROR IN EMAIL private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { guest_id.Text = dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); first_name.Text = dataGridView1.SelectedRows[0].Cells[1].Value.ToString(); last_name.Text = dataGridView1.SelectedRows[0].Cells[2].Value.ToString(); txt_gender_status.Text = dataGridView1.SelectedRows[0].Cells[3].Value.ToString(); txt_martial_status.Text = dataGridView1.SelectedRows[0].Cells[4].Value.ToString(); phone_numb.Text = dataGridView1.SelectedRows[0].Cells[5].Value.ToString(); email_id.Text …

Member Avatar for diya45
0
180
Member Avatar for shahai.ali

how to get the data from the following `xml`: <HostipLookupResultSet version="1.0.1" xsi:noNamespaceSchemaLocation="http://www.hostip.info/api/hostip-1.0.1.xsd"> <gml:description>This is the Hostip Lookup Service</gml:description> <gml:name>hostip</gml:name> <gml:boundedBy> <gml:Null>inapplicable</gml:Null> </gml:boundedBy> <gml:featureMember> <Hostip> <ip>182.0.0.1</ip> <gml:name>Private</gml:name> <countryName>Private</countryName> <countryAbbrev>PR</countryAbbrev> <!-- Co-ordinates are available as lng,lat --> <ipLocation> <gml:pointProperty><gml:Point srsName="http://www.abc.net/xyz/srs/epsg.xml#4326"> <gml:coordinates>68.7833,30.4</gml:coordinates> </gml:Point></gml:pointProperty> </ipLocation> </Hostip> </gml:featureMember> </HostipLookupResultSet> following is what i was trying: …

Member Avatar for diafol
0
259
Member Avatar for kathymac

Hi Here is my webpage: http://dgssi.com/barton/directory.html I need to find a tooltip script that when you mouseover a store name in the right frame it will display at a specified location on the map on the left side. I am totally stuck on how to go about doing this and …

Member Avatar for AleMonteiro
0
138
Member Avatar for 4everct01

Hey there, Im doing for a typing platform project to test the typing speed of a user. I have a SQL database (para1) which store a list of words. I use datalist and linqdatasource to display the text in a textbox (paraBox). What should i do to match the word …

Member Avatar for AleMonteiro
0
151
Member Avatar for Echo89

I know I could parse the files name for the extension, but that can be faked. I know I can get the mime type, but they can also be faked. I know I could use Magic Numbers, but on some files, they are not at the top of the file. …

Member Avatar for phorce
0
308
Member Avatar for LD Company

Hello programmers! I made new software, LD File Browser. This software contains ListView but this ListView has error. Software works fine when I run it on F5 (debug), but when I run .exe icon I got error when I select different item in ListView. Here is the code: TextBox1.Text = …

Member Avatar for john.knapp
0
231
Member Avatar for That.T3rr11

I need help converting this python code to c# could someone help me please? #!/usr/bin/env python # encoding: utf-8 import sys, getopt import os, urllib, urllib2, re, string, math help_message = ''' ''' no_param = ''' ''' verbose = False fakeMode = False curPath = os.getcwd() + "/" # Should …

Member Avatar for deceptikon
0
516
Member Avatar for rubai

This code reads a.txt file <?php $file_path = 'a.txt'; $file_handle = fopen($file_path, 'r'); $text_data = fread($file_handle, filesize($file_path)); print $text_data; fclose($file_handle); ?> I want to upload this text file using the code given below and want to read the uploaded file when I hit submit button. I know there is a …

Member Avatar for rubai
0
203
Member Avatar for hwoarang69

these 3 line store image in folder. //place image in the folder $ext = pathinfo($_FILES['image_file']['name'], PATHINFO_EXTENSION); //return png,jpg,etc $image_folder_name = $user_user_name_s . '_' . time() . '.' . $ext; //create unife image name move_uploaded_file($_FILES['image_file']['tmp_name'], "IMAGE/ITEMS/$image_folder_name"); //place image in folder what is i want to print the image now. how can …

Member Avatar for Squidge
0
1K
Member Avatar for Maritha33

Guys, I really need your help. I have a Project about any systems activities related to java Program and I choose Mini Search Engine. Can you please Help me of how to use Class and Objects cause I'm about to use them in my source code. thanks.

Member Avatar for JamesCherrill
0
329
Member Avatar for strava

I'm newbie in C++ programming and I want to declare a constructor from following code in my main however I'm completely confused about it. Here is the code: #include <vector> using namespace std; template <typename HashedObj> class HashTable { public: explicit HashTable( const HashedObj & notFound, int size = 101 …

Member Avatar for deceptikon
0
643
Member Avatar for onofej

Please could someone check this code for me as it is giving me You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near line . Although this type of question has been ask by someone …

Member Avatar for onofej
0
232
Member Avatar for sultankhan

hi evry one may be this a tip task or easy but for me it is not easy i have show.php and showpost.php page in show.php i am showing my picture while in showpost.php i am showing post now if a user add picture it should be on of my …

Member Avatar for urtrivedi
0
155
Member Avatar for IcyFire

I need to write a program (using Dev-C++) which can count the number of hyperlinks of a given web page. The main objective is to practice socket programming and try to use HTTP protocol. I am not sure exactly how to go about doing this. Can anyone help me figure …

Member Avatar for IcyFire
0
271
Member Avatar for hpre

please help! I keep getting this error : (-3, -3, IndexError('list index out of range',)) class SokobanProblem(search.Problem): def __init__(self, initial): ##-------- creates an object of the class ## tmp_list = list(initial) row_len = len(tmp_list) column_len = len(tmp_list[0])-1 goal_list = [] for i in xrange(0, row_len): tmp = list(tmp_list[i]) goal_list.append(tmp) goal_tuple …

Member Avatar for Schol-R-LEA
0
270
Member Avatar for guy21

void main() { char line[300]; cout<<"enter ascii code"; cin>>line; int d = strlen(line); for(int i=0; i<d-1; i+4) { if(line[i]!='.') { (int)line[i]; (int)line[i+1]; (int)line[i+2]; int num=(line[i]-48)*100+(line[i+1]-48)*10+line[i+2]-48; cout>>(char)num; } } getch(); } ok, you enter ascii codes like 104.101.121. and the program converts this into a line like 'hey'. But there's something …

Member Avatar for guy21
0
116
Member Avatar for sandjuks112

Hi! I have an image slideshow, but it shows first image in alphabetic sequence. I need it shows the fist image, that what has last uploaded in image folder, like sort by date. Sorry for my bad English. Here is the script <?php $imageDirectory = "images"; $interval = 5; ?> …

Member Avatar for diafol
0
346
Member Avatar for HibaPro

i uesed vb6 with crystal report 10 , when i try to open report.rpt file in crystal report this message appear to me : Invalid report schema , cant open the document,, anyhelp plz??

Member Avatar for HibaPro
0
71
Member Avatar for kbondarchuk

public static int f (int []a, int []b,int []c) { final int N=a.length; int j, k=0, g=0, t=0 ; for(int i=0;i<N;i++) { for (j=0;j<N;j++) if (b[j]==a[i]) break; if (j==N) { c[t]=a[i]; if (g==0 || c[t]>k) { k=c[t]; g=1; } t++; } } return k;

Member Avatar for JamesCherrill
0
213
Member Avatar for missy_mi

i am trying to do a pagination but, i cant seem to get the problem.. <? //pagination $objConnect = mysql_connect("localhost","root","") or die(mysql_error()); $objDB = mysql_select_db("custech"); $strSQL = "SELECT * FROM proposals "; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); $Num_Rows = mysql_num_rows($objQuery); $Per_Page = 4; // Per Page $Page …

Member Avatar for paulinetaylor85
0
333
Member Avatar for shark101

hello I have the following program in which there is a switch menu and when a person enters 2 the switch menu should take to the second function which is funcTwo but it is not doind so and just gets back to the menu it self i tried switching the …

Member Avatar for ravenous
0
128
Member Avatar for karan.rks

Hey... I have created a prgoram in turbo c++, and i wanted it to export it as a separate file ... that is out of the bin file.. and out of all the other include file, so that it actually runs on every computer who even does not have a …

Member Avatar for karan.rks
0
181
Member Avatar for adishardis

Hi, I have a json_encoded array that comes out like this `{"y":33,"customTooltip":"BOK"},{"y":61,"customTooltip":"DRFlytt"},`... I need it to come out without the quotes surrounding the y and the customTooltip and singlequotes around the last value like this `{y:33,customTooltip:'BOK'},{y:61,customTooltip:'DR'},` Is this possible or should I find another approach? I derive the array like …

Member Avatar for adishardis
0
136
Member Avatar for StinaBremm

For my networking class we have to do an assignment using python to code a client and server that will connect to each other and the client will send these messages: 0 - Response This message is a response to a previous request 1 - Echo Request This is a …

0
156
Member Avatar for shahai.ali

hi i made a search but couldn't find a satisfied answer. any ways let me ask the question. as there are many freinds on facebook, twitter at social sites. and many other at gmail, yahoo and hotmail etc. now what i want is how to invite all the friends or …

Member Avatar for AndreRet
0
291
Member Avatar for DEAD TERMINATOR

On my site, I have navigation buttons that navigate through results of a search. Basically, what I want to do is to disable certain buttons at certain times (i.e you can't click the next button if you are on the last result). I'm looking for a way to do this. …

Member Avatar for diafol
0
259
Member Avatar for nazmule27

What is NULL? Please answer if know it exactly in java Perspective.

Member Avatar for JamesCherrill
0
133
Member Avatar for lycanickel

Hello everyone I am of course new to ppython and I am having trouble joining an integer variable and a string without a space in between them. Lets say my variabe was an integer of num = 121 and I wanted to print the proper ending of "st". which would …

Member Avatar for Gribouillis
0
374
Member Avatar for ponkhiraj

Hi, Everybody... Can anyone knows what is the maximun character limitation of a Label in Vb.net? Basically i need to scroll a label with timer as Marquee. The label text is coming from a richtextbox. The richtextbox contains more than billions character. I replaced all vbLf(LineFeed) of richtextbox with a …

Member Avatar for tinstaafl
0
188
Member Avatar for swetha1991

i have installed tomcat and deployed axis folder in the tomcat->webapps and my .jsp and .jws files in the axis folder of webapps, while my .jws files are executing successfully and showing the wsdl code, my .jsp files are showing the error page as follows: type Exception report message description …

Member Avatar for jalpesh_007
0
269
Member Avatar for jlemieux

I have an assignment to create 2 arrays. One holding Student names, one holding their grades. They then have to be sorted using BubbleSort, so that their grades are in descending order. I have created the first part of it, that allows me to put in their grades, and I …

Member Avatar for jalpesh_007
0
274
Member Avatar for johndy.maghanoy

how can i deleting an element in an array, then replace it with to 0 the move 0 to the last element???

Member Avatar for jalpesh_007
0
99
Member Avatar for almondjoy

hey guys, can you suggest a good java compiler for me? i had eclipse, but it literally FELL APART. thanks, almond joy

Member Avatar for jalpesh_007
0
107
Member Avatar for System Networks

'm new to Java and please try to explain to me. I am developing a game using slick2d and I'm making so called a shop.class and a player.class The shop class should add medkits to the player class. I have been making so many test on it even testing if …

Member Avatar for jalpesh_007
0
281

The End.