199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RobRTaylor

Is anything wrong with this code? I ask because in the past, I included the text file with the installer. In an attempt to simplify the installer, I decided to make the app generate the text file and put it where it needs to go. Here's the code (simplified) First …

Member Avatar for RobRTaylor
0
145
Member Avatar for ChicagoBears2012

Basically I'm supposed to make a program that copies the Unix -wc command. Flags -l, -w, -c, and -L are supposed to display # of lines, # of words, # of characters, and # of characters in line, respectively. I am having trouble reading in a text file (first time …

Member Avatar for ChicagoBears2012
0
120
Member Avatar for bramprakash1989

i tried the following coding .it compiled without errors but gave absurd results during runtime. can u pls help me with it? [code=cplusplus] #include<iostream.h> #include<stdlib.h> int main() { int i; cout<<"ten random numbers for the range 0 to 50"<<endl; for(i=0;i<10;i++) { cout<<rand()<<endl; return 0; } }[/code]

Member Avatar for dramatic
0
1K
Member Avatar for can-mohan

Hi, Below code snippet belongs to copy constructor implementation. my question is in both cases (without and with copy constructor) if i execute this programme ,it will print the diff-2 memory addresses for both objects. 0x22ff20integer=0 (for object s1) 0x22ff10integer=0 (for object s2) but i believe in case of without …

Member Avatar for deceptikon
0
192
Member Avatar for akhilchandranms

hai , I am using turbo c compiler, the system() function always return -1. i can't run any dos command using system() function i can't use system() properly please help me !!! ex: [CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> void main() { int i ; i=system("dir"); printf("%d",i); getch(); } [/CODE]

Member Avatar for deceptikon
0
1K
Member Avatar for StefanRafa0

Hello guys im working on program and i stucked at database i need to create some place that will save all information of Account (in some file if can) then read it every time user "Log in" in the program. I tryed searching but i cant get it ... Please …

Member Avatar for tux4life
0
359
Member Avatar for McLaren

Hello, we are thinking about making module which will use video streaming from our server, php, database. We want to make it posible to integrate into any website as easily as posible. What would be the easiest way, how should I search information about this? I tried quick searching but …

Member Avatar for McLaren
0
141
Member Avatar for Violet_82

hi all, I need to draw a series (10) concentric circles starting fromt he middle of the panel. This is what I have done, do you reckon it is ok? //Ovals.java import java.awt.Graphics; import javax.swing.JPanel; public class Ovals extends JPanel{ public void paintCmponent(Graphics g){ super.paintComponent(g); //calculates the centre of the …

Member Avatar for Violet_82
0
3K
Member Avatar for sandeep.gade

i want to develop 1 application its just like hotel managment type, but i want to connect with tally for releted entries. so please suggest me from where to start.

Member Avatar for Begginnerdev
0
184
Member Avatar for ImZick

Hi guys i have this code which insert the data in the textbox Dim FilePath As String = "C:\Users\ezekiels\Desktop\New Folder\EBU 6.mdb" Dim conn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & FilePath & "") conn.Open() Dim myadapter As New OleDbDataAdapter("SELECT * FROM Table_EBU6", conn) Dim dtset As New DataSet myadapter.Fill(dtset) myadapter.Dispose() Dim table …

Member Avatar for Begginnerdev
0
205
Member Avatar for daniel36

I am workin on an project.in which i need to know in what order array is sorted after sortig using function sort($array);

Member Avatar for cereal
0
165
Member Avatar for bhadra.anurag

import java.io.*; class pattern { public static void main(String args[]) throws IOException { int n; BufferedReader br = new BufferedReader(InputStreamReader(System.in())); System.out.println("Please Enter Your Pattern Length:- "); n = Integer.parseInt(br.readLine()); while(n>2) { for(int i=0;i<=n;i++) { if((i==1)||(i==n)) { for(int k=0;k<=n;k++){ System.out.print("*"); System.out.println(); } } else { int o = n-2; System.out.print("*"); for(int …

Member Avatar for stultuske
0
703
Member Avatar for mmpal78

Hi, I have python 2.7 & python 3 installed on ubuntu. I just installed pygame and have it working so far in python 3 which is what I want to be doing. However I can only load bmp images in python 3. When I try to load a jpg I …

Member Avatar for slate
0
533
Member Avatar for Vincentas

Hi there, I just came to find out, storing a password in a plain text is a bad idea IF that password is only used for re-sending it? Let me put it this way, people register in your site, you can keep one hased password, lets say by md5() or …

Member Avatar for cereal
0
169
Member Avatar for dinhunzvi

i'm developing an app that i intend to run on a client's intranet. i want to ensure that only email addresses with the client's domain should be registered. how do i achieve this using regular expressions?

Member Avatar for dinhunzvi
0
166
Member Avatar for uurcnyldrm

Hi everyone, I'm using the following code snippet to download and save a file from an address using Java... URL website = new URL("http://www.website.com/example.torrent"); ReadableByteChannel rbc = Channels.newChannel(website.openStream()); FileOutputStream fos = new FileOutputStream("example.torrent"); fos.getChannel().transferFrom(rbc, 0, 1 << 24); However, a problem occurs when I try to download a file with …

Member Avatar for uurcnyldrm
0
227
Member Avatar for RCDAWebmaster

Hi everyone, I’m getting the following error uploading a file with asp. I’m using the code I downloaded from uploadasp.zip. I don’t know who wrote it so I can’t give credit. I've checked my local dev box here and I do infact have the correct directory permissions as far as …

Member Avatar for remunance
0
385
Member Avatar for hirenpatel53

hi all i am reading excel file from c# into dataset everything working fine but the problem is it takes first row of excel as header's of column and i have "TRANSACTION DATA FOR CDs MANAGED BY TCBILs FOR THE MONTH OF DECEMBER 2012" in first row of excel ant …

Member Avatar for remunance
0
217
Member Avatar for can-mohan

While executing below code, i found it is not functional due to segmentation fault error,even though memry allocation has been done propery in below code but still not sure why this error is coming. i will appreciat e if somebody help me as just month before i started learning c++. …

Member Avatar for remunance
0
442
Member Avatar for baneyramos_09

? missing return statement! hi guys, Im trying to compile this class below, but its just not working, it keeps sating 'missing return statement' int the method declaration line. Can u see to check if there is anything missing in my code or if iv done something wrong?? Thanks! [code]public …

Member Avatar for stultuske
0
262
Member Avatar for millus

I am inserting values into a database but i get an error, it says the variable name @emp_login has already been declared. How do i resolve this? This is my code `SqlDataReader readerReference = cmd_Reference.ExecuteReader(); SqlCommand cmd_Insert = Connexion_Insert.CreateCommand(); string insert = "INSERT INTO EMP_tracking(emp_login, emp_dom_code, emp_domain,emp_surname") VALUES (@emp_login,@emp_dom_code,@emp_domain,@emp_surname); int …

Member Avatar for ChrisHunter
0
179
Member Avatar for mickky

can anyone plese tell me how to make installable file of a java program using visual studio 2010 professional.?

Member Avatar for mickky
0
86
Member Avatar for uurcnyldrm

Hi everyone, I need some resources, examples, or tutorials to be able to understand how to write a server in PHP which can communicate with MySQL database, and receive & send the desired information to the client from the database. If you offer some websites or books, I would appreciate. …

Member Avatar for uurcnyldrm
0
241
Member Avatar for RT00220489

Hey !! I have created a web application in ASP.net. In the master page, I am using tables to create the required page display. On the left side, i have an image on an arrow followed by text eg. (img.png)Order. When i click on Order, i need the different types …

Member Avatar for arun1123
0
271
Member Avatar for daniel36

I am working on a project.In this i need to assign values in array with different location of code.first i used the $bd=array('1','420'); $bd=array('2','520'); etc.but when i echo $bd[1]; and echo $bd[2]; only last inserted value(520) is displayed.do you have any solution for it?

Member Avatar for daniel36
0
120
Member Avatar for Anverdeen

hai all the comunity people. i want to know how to creat a software in visual basic

Member Avatar for rishif2
0
64
Member Avatar for varma51

in img2.php <form action="img3.php" method="post" enctype="multipart/form-data" name="uploadImage" id="uploadImage"> <p> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo MAX_FILE_SIZE; ?>" /> <label for="image">Upload image:</label> <input type="file" name="image" id="image" /> </p> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo MAX_FILE_SIZE; ?>" /> <label for="image">Upload image:</label> <input type="file" name="photo" id="image" /> </p> <p> <input type="submit" name="upload" id="upload" value="Upload" /> …

Member Avatar for varma51
0
135
Member Avatar for HunainHafeez

i am sending emails to more than 1000 users at time , so i used a datatable to fetch email addresses from DB's table and then i loop over it voa foreach and then send it to each user via net.mail namespace's code that's ok, Done But problem is that …

Member Avatar for arun1123
0
712
Member Avatar for dinhunzvi

i have two tables the following structures. CREATE TABLE `tblbranches` ( `branchID` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `branchCode` varchar(30) NOT NULL, `branchName` varchar(30) NOT NULL, `regionID` tinyint(3) unsigned NOT NULL, `branchAddress` varchar(400) NOT NULL, `cityID` smallint(5) unsigned NOT NULL, `countryID` smallint(3) unsigned NOT NULL, `branchContact` varchar(50) NOT NULL, `branchFax` varchar(20) …

Member Avatar for dinhunzvi
0
193
Member Avatar for chaitanya_krish

how to call different java method based on html select option choice? any code sample? basically, user will select a dropdown option and press submit. for each option,different query should be executed. using mysql DB and netbeans IDE. Thanks !!!

Member Avatar for stultuske
0
215
Member Avatar for unikorndesigns

Hi guys, I am trying integrate piwik site analysis graphs with my web app. There is a way to represent the data from the locally hosted piwik in the webapp but it requires the user to log into piwik through its UI. I am thinking of integrating the piwik graphical …

Member Avatar for veedeoo
0
144
Member Avatar for paulablanca

I have a datagridview and I want to pass some of its value to another datagridview after selecting the values and clicking a command button. Is there any possible ways for me to do it? Thanks! God Bless. :D

Member Avatar for arun1123
0
4K
Member Avatar for DarkVision

hi guy i would like help or info about socket little exemple of code: clientSocket = new Socket(ip, 6784); BufferedReader insideServer = new BufferedReader( new InputStreamReader(clientSocket.getInputStream())); its that possible from the inputStream getting the click event ? example a user click from a button and another user using same application …

Member Avatar for radhakrishna.p
0
114
Member Avatar for somiya kunwar
Member Avatar for <M/>
0
326
Member Avatar for mshauny

I having been working on java web-start applet for serial communication which I now need to integrate and make it invoke able from an ASP .NET webpage / application. I have tried numerous ways of doing this which all have not yielded anything progressive. including but not limited to the …

Member Avatar for JohnnyCash
0
453
Member Avatar for Priti_P

Hello, If am entering data as "hi this is for test" as my input to <textarea> but while displaying it, it is giving me as one sentence . Help me out with this.

Member Avatar for Priti_P
0
160
Member Avatar for inuasha

alright so my exact problem is that when I attempt to visit a url stored in a text file I get the error "URLError: <urlopen error no host given>" This is strange because if I type in the urls myself they work fine(opener.open("site.com")) The lines of code causing the error …

Member Avatar for snippsat
0
278
Member Avatar for davy_yg

Hello I am trying to create a chart based on clicks information. How to do so ? // print jumlah klik dalam graphic $result = mysql_query("SELECT COUNT(idads) AS countidads FROM adsmgt") or die(mysql_error()); $resultday = mysql_query("SELECT COUNT(idads) AS countidadsday FROM adsmgt GROUP BY date") or die(mysql_error()); while($row = mysql_fetch_assoc($result)) { …

Member Avatar for davy_yg
0
147
Member Avatar for vizz

I need login with cookies to hide comment form, from user who are not logged in. Users can view article without login but can not comment without login **Database** CREATE TABLE IF NOT EXISTS `members` ( `id` bigint(12) NOT NULL AUTO_INCREMENT, `fname` varchar(500) NOT NULL, `lname` varchar(500) NOT NULL, `email` …

Member Avatar for vizz
0
315
Member Avatar for lewashby

I'M reading "C++ FOR DUMMIES" 4th edition by Stephen Randy Davis and the chapter on arrays as just introduced this line -> `cout.width(3);` with absolutly no explanation to waht width is. I would like any of you guys to help me wout here but in addition to telling what .width …

Member Avatar for lewashby
0
248
Member Avatar for ckjaseem

I have got around 10 <div>'s and in every <div> there is a different datetime. I want to call a java-script function when the clients local time matches the time in that <div>'s. //sample scenario <div id="a" class ="help">2/3/2013 6:39:14 PM</div> <div id="b" class ="help">2/3/2013 2:39:14 PM</div> <div id="c" class …

Member Avatar for LastMitch
0
1K
Member Avatar for garyjohnson

Hello, this is just a general question. I always look at every website source when I visit it and I notice they are very robust and complex. Then I look at my site and think wow, mine is nothing like that. Is there an issue with that? Am I not …

Member Avatar for LastMitch
0
199
Member Avatar for aVar++

I have my battleships game working completely accept ships do not generate randomly. I have each point of the ship assigned to certain squares. Example: ship_1_1 = Grid[1][1] ship_1_2 = Grid[1][2] ship_1_3 = Grid[1][3] ship_1_4 = Grid[1][3] Randomly generating ships is harder than I thought. For these reasons: - Ships …

Member Avatar for woooee
0
464
Member Avatar for monching

Hi there, I have problem with my DropDownBox, my datasource is from MySQL database. My problem is this, I have already stored data in my database let's say 12 rows, but when I am trying to fetch it on to dropdownbox, only 11 data will be the item values of …

Member Avatar for monching
0
178
Member Avatar for Programmer629

hey guys! i've been getting better at vb.net and i am very familiar with it now. im not an expert but i know some more vb.net now. anyway, i have some code here: 'Show status txtboxStatus.Text = "Playing Loading Sound" 'Play recording Me.BackgroundWorker1.RunWorkerAsync() End Sub 'This method is executed in …

Member Avatar for Programmer629
0
3K
Member Avatar for Akusa

I have to write two scripts, one in bash and one in dos. My dos one works perfectly but I'm having trouble with my bash one. The assignment is to make a script that takes a command line argument (from a test script) and return the change. So if the …

Member Avatar for dfl1954
0
410
Member Avatar for asif49

I'm not sure exactly where to put this, but here should be ok... I want to carry out some functions when an executable is opened to manipulate certain windows that are on the computer, someone has recommended a macro for this purpose. The type of function to be performed is …

Member Avatar for JorgeM
0
138
Member Avatar for somjit{}

this is an exam question i failed to answer properly, im trying to work it out. the code i came up with is below, it works ok, but i was hoping if anyone could help in improving it. iv read in various threads in daniweb itself about making a code …

Member Avatar for Adak
0
294
Member Avatar for HunainHafeez

i am getting error ERROR: The specified string is not in the form required for an e-mail address. but when i pass static email address , it works , why ? protected void Button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(connectionString); String command = "select visitorEmailID from tblvisitorSubscriptions"; …

Member Avatar for HunainHafeez
0
1K
Member Avatar for JordanSimps

I kind of have an idea what to do, but I can't figure it out. The program needs to be able to get the students name and three test scores, then get the average score (percentage) out of the three scores. After that, you need to convert the score (percentage) …

Member Avatar for vegaseat
0
259

The End.