199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ChPravin

Hello All, I just wanted to know,how to use recursion to find the nth last element in a linked list? I know of an approach using 2 pointers as well as another one using 2 iterations but I can't seem to figure out the recursive solution.Any help will be greatly …

Member Avatar for rexslahed
0
1K
Member Avatar for philspotter

CALLER [code] function showContent(s,i){ // loading //loading_img(1); //s = s.toString(); // i undefined if(i==undefined){ i=""; } if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else{// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4 && xmlhttp.status==200){ //alert('s'+s); document.getElementById('s'+s).innerHTML=xmlhttp.responseText; if(s==0||s==1||s==4||s==7||s==8||s==9){ var v="js"+s; if(document.getElementById(v)){ eval(document.getElementById(v).innerHTML); // THIS IS …

Member Avatar for philspotter
0
258
Member Avatar for senbaris

hi all, i need connect to SFTP server and download files, searched everywhere but found nothing except non-free librarys.. Thanks for help.

Member Avatar for Begginnerdev
0
101
Member Avatar for tontano

Hello Team Members; I am new to programming, and have 2 issues that I cannot figure out. Sorry, for not providing the code, as I didn't know where to take it from. here is my situation. I have 2 projects in a solution (Csharp & vbNet), now because Charp is …

Member Avatar for Begginnerdev
0
153
Member Avatar for nidheeshkumar.r

hey, im doing a project on processing images and i'd like to extract the features of an image stored in databse.How can i do that? anyone help..,please..

Member Avatar for NormR1
0
1K
Member Avatar for Labdabeta

A few friends and I made a bet to see who could single-handedly (we defined that as a team of up to 10 people, all of whom must be personal friends) make the best video game over the course of two years. I am planning on making a first-person horror …

Member Avatar for Labdabeta
0
229
Member Avatar for skatamatic

I am having a problem with a COM interop in VB6. I am trying to write a .Net class in C# to access from within vb6 (something I've done too many time to count), and it works pretty well except that there's a strange error if I try to run …

Member Avatar for skatamatic
0
197
Member Avatar for J94

im making a basic ASM simulator which runs in a datagridview, iv got most of it working like the add/sub/mul/div operators, but im having trouble with the jump function, the jump it self works, the simulator jumps but it still executes the next operator after the jump when its supposed …

Member Avatar for Begginnerdev
0
154
Member Avatar for sujan.dasmahapa

I am loading an extension dll from my mfc client application, when click on the menu first time the dll dialog is being loade and after i exit or close the dialog, and again clicking on the menu to load again it's giving error that "A required resource was unavailable". …

Member Avatar for sujan.dasmahapa
0
390
Member Avatar for Pravinrasal

pass dynamic values in json data in java script means when i am changing combo box i want to store values from combo box to json in key -value pair and finally also want length of JSON anyone please help me ...... Here is my code [CODE] <script type="text/javascript"> var …

Member Avatar for AleMonteiro
0
664
Member Avatar for vivekanandaan

[CODE] Dim connectionString As String Dim cnn1 As OleDbConnection Dim cmd1 As OleDbCommand Dim sql1 As String connectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = d:\sprrg\sprrg.mdb" sql1 = "update po_detail set po_number=" & txtPoNo.Text & " where po_number=0;" cnn1 = New OleDbConnection(connectionString) cnn1.Open() cmd1 = New OleDbCommand(sql1, cnn1) cmd1.ExecuteNonQuery() cmd1.Dispose() [/CODE] The table …

Member Avatar for Begginnerdev
0
123
Member Avatar for srinim84

Hi, i'm using vb.net 2005 and i'm using crystal report also.when i try to open the reports ,this error will be shown "[B]directory or file cannot be created[/B]". i can't find the exact solution. Please help me to find out the solution for this crystal report error

Member Avatar for Begginnerdev
0
321
Member Avatar for MohEzzat

I ask for help if any one know how to filter words from text file. if the file contain(book,books,booking,..)I want the filter to retrieve only book and booking also if it contain(get and got)choose only the verb "get". any help Thanks.

Member Avatar for stultuske
0
192
Member Avatar for syd919

Hello people,I hope everyone is well. I am having problems with my connection string. It seems its not detected at all. I am designing a Silverligtht app with a Linq to SQL connection for the data. Here is my code.[CODE] ConnectionStringSettings settings = ConfigurationManager.ConnectionStrings["DataConnect"]; string connection = settings.ConnectionString; DataContext dataContext …

Member Avatar for thines01
0
252
Member Avatar for jackbauer24

Here is my problem:- On my desktop, there is a folder called "Test." In Test, there is a folder called "toUse." In "toUse," there is a java source file called "Test" and three folders, namely "Print," "SwingFrame" and "TextFileWriter." The source file for "Test.":- [CODE]package Test.toUse; import Test.toUse.Print.Printer; public class …

Member Avatar for NormR1
0
110
Member Avatar for LearnVBnet

I can Insert table from Old_Table_Database to New_Table_Database with this code. [CODE] Dim cmd5 As New OleDbCommand Dim cmd6 As New OleDbCommand cmd6 = New OleDbCommand("select * from " & "Product ", OldConn) Dim dr6 As OleDbDataReader dr6 = cmd6.ExecuteReader For j As Integer = 0 To dr6.FieldCount - 1 …

Member Avatar for LearnVBnet
0
140
Member Avatar for vn412

Hi, I m populating 2 select boxes country & city dynamically using ajax. All is working fine in mozilla &all but not in IE. but when i change country acc. to it city select box doesn't get populated in IE. [CODE] <td width="60%" align="right">Country : <?=PopulateSelect('country1',"SELECT * FROM tblname order …

Member Avatar for vn412
0
218
Member Avatar for daitken

OK! I gave it away in the title. . What I have is a java script that is the floating top menu for the site. Instead of putting all that code on each page I want to have it on one page and just use a little code to import …

Member Avatar for daitken
0
300
Member Avatar for LearnVBnet

[CODE] Dim NewConn As New OleDbConnection(strConn) NewConn.Open() Dim dlt1 As New OleDbCommand("DELETE * FROM Invoice ", NewConn) Dim dlt2 As New OleDbCommand("DELETE * FROM InvoiceDetail", NewConn) Dim dlt3 As New OleDbCommand("DELETE * FROM Receiver ", NewConn) Dim dlt4 As New OleDbCommand("DELETE * FROM ReceiverDetail", NewConn) dlt1.ExecuteNonQuery() dlt2.ExecuteNonQuery() dlt3.ExecuteNonQuery() dlt4.ExecuteNonQuery()[/CODE] How …

Member Avatar for LearnVBnet
0
220
Member Avatar for google2011

[URL="http://www.herongyang.com/C-Sharp/"]C# Tutorials[/URL] This free book is a collection of notes and sample codes written by the author while he was learning Flash. Topics include C#, C Sharp, data types, float, expression, literal, loop, .NET, performance Table of Contents About This Book Introduction of C# (C Sharp) What Is C#? Installing …

Member Avatar for thines01
0
381
Member Avatar for khanrock

I am currently having a html code as: <form> <input type="text" name="price1" size="14" value="Rs.900" readonly="readonly"/> <input type="text" name="price2" size="14" value="Rs.600" readonly="readonly"/> <input type="text" name="price3" size="14" value="Rs.500" readonly="readonly"/> </form> <form name="qty"> <input type="text" name="quant1" id="id1" size="14" value="0"/> <input type="text" name="quant2" id="id2" size="14" value="0" /> <input type="text" name="quant3" id="id3" size="14" value="0" /> …

Member Avatar for partha.asp
0
186
Member Avatar for woodson2

I'm trying to enter a block of text into an existing configuration file for OpenLDAP so the setup can be fully scripted. The text below is what I want to enter into slapd.conf and this all works well and good, however as you probably know this will place the text …

Member Avatar for L7Sqr
0
102
Member Avatar for webman07

I have bought a legal copy of SQL Server 2000 to put on one of my websites but can't seem to get it to load. Any ideas?

Member Avatar for Biiim
0
176
Member Avatar for 4evrmrepylrning

I have been asked to look into getting a web framework up and running here at work. I come from a PHP background and have developed a few tools various people use around the office. I have recently become part of a small team of developers who only use Python, …

0
115
Member Avatar for tpoole00

Ok, so basically the program runs, compiles and everything. But, after you run it, u will see the problem. When i run it it I cannot display the original entered information. I am new to this and I have tried a few things, but everything I try seems to mess …

Member Avatar for Banfa
0
127
Member Avatar for _Nestor

Hi I'm wondering how you would write a function that could iterate through any stl container so it didn't matter what you were using e.g list, vector, deque and found an item that matched in that list so the function declaration would look something like this [CODE] template <class TypeList, …

Member Avatar for _Nestor
0
258
Member Avatar for Tommy.b

Hello, I have a table with clients: id, name, email and the likes I am looking to find all ID's where emails are the same, I tried the following [code]select db_email, db_medlem, count(*) from kunder group by db_email HAVING count(*) > 1;[/code] however this generates an error due to not …

Member Avatar for sankarssn
0
9K
Member Avatar for myk45

Hello. i was trying to solve this problem: [B]You’re given an array containing both positive and negative integers and required to find the subarray with the largest sum (O(N)). Write a routine in C for the above. [/B] i was able to find the largest sum. However,i had little trouble …

Member Avatar for VIKAS REDDY
0
726
Member Avatar for XTMercenary

I'm creating a tv schedule for a hotel and need to be able to fill the schedule with particular programs that take up various amounts of time each slot is 30 mins so a film with a 1hr 30 min run time would take up 3 slots but i'm not …

Member Avatar for XTMercenary
0
184
Member Avatar for triumphost

I'll get straight to the point as it's very difficult to do since I haven't found the answer on google or anywhere else. [CODE] Class ArrayOfTypes { vector<MyType> P; &MyType operator [](int I) = (MyType& PT) { if (P[I] != PT) { P[I] = PT; } return P[I]; } } …

Member Avatar for Banfa
0
261
Member Avatar for Davetew

Dear Experts, I'm newbie in php. Can anyone please help to check my code as below: Blank value inserted to Mysql using dropdownbox. Thanks in advance. [CODE] <?php mysql_connect("localhost","root","") or die("Error: ".mysqlerror()); mysql_select_db("project_Test"); $Serial_Number = $_GET['Serial_Number']; $sql = "select * from `TestTable` where Serial_Number = $Serial_Number"; $query = mysql_query($sql); $row …

Member Avatar for Davetew
0
106
Member Avatar for us0343

hi All, how i can get daniweb forum software ? From where i can know about daniweb software's features and admin panel? And the other hand what forum software would you like to recommend for student's forum. I want to make an organization type forum for students. Suggestion will be …

Member Avatar for pritaeas
0
185
Member Avatar for gkbush

I would think that this wouldn't be a complex thing, but I guess I'm wrong. I want to create tables in a database based upon a string created by input variables including a parent ID. My Code: -- create table named the value in @newname SELECT CONCAT('Entity_', @@IDENTITY) into @newname; …

Member Avatar for pritaeas
0
110
Member Avatar for rereni

Hello Programmers, is it possible to create new 1D array from 2D array? for example from this array String[][] ArrVal= { {"rec", "02"}, {"proc", "03"}, {"hscode", "10"}, {"sitc", "21"}}; take first column of ArrVal[i][0] and make this as new array with ArrVal[i][1] as value of new array, for example : …

Member Avatar for JamesCherrill
0
173
Member Avatar for Hypnos_16

I have an assignment question that asks us, given a test phrase, [CODE]// the first comment public class Test { // another comment public static void main( String[] args ) { // the main method String slashes = "//"; // ignore // in quotes System.out.println( slashes + " hi " …

Member Avatar for stultuske
0
208
Member Avatar for rammohanrao

Hi, i am working on liferay , i want to develop a sms application in liferay, if you have any code can you send me to <EMAIL SNIPPED> Thanks.

Member Avatar for stultuske
0
126
Member Avatar for senbaris

Hi, I'm not exactly sure if this is the correct question to be asked but I will tell you what I am attempting. I have an ASCII txt file with data in it. It does not have headers. I am looking for a way to convert this data into an …

Member Avatar for senbaris
0
1K
Member Avatar for Matjame

Hi team. I am battling to convert a string to date. I currently manually pass a string date to my program(cobdate = string.replace(sys.argv[1], '-', '')) which will be used by a lot of things. The date will be in this format. "2012-02-02". I need to convert this to a proper …

Member Avatar for Matjame
0
754
Member Avatar for randrum1707

Hello, I'm trying to overload an indexing operator and I'm running into issues with a vector (3 dimensions). Here is what it should do: [CODE]operator[] The indexing operator should be overloaded to provide accessor methods for the class. Subscript 0 should provide access to the x component value of the …

Member Avatar for triumphost
0
313
Member Avatar for gopi17

heyy guys...really could use some help here... my table is not updating its value, but there are no errors...the syntax seem to be correct [CODE] <?php session_start(); $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="testing3"; // Table name $invoice_no=$_SESSION['invoice_no']; $container_no=$_SESSION['container_no']; // …

Member Avatar for gopi17
0
135
Member Avatar for livinFuture

Hello all. I am having difficulty getting my program to output data correctly. I have a class member function that is supposed to return the value of a specific member of a struct element based on identification with its (the struct element's) other members. [code] float MatrixType::valueAt(int i, int j) …

Member Avatar for livinFuture
0
203
Member Avatar for Awah Mohamed

hey people please tell me what to do , when ever i use mysql_fetch_array(data) i get this error : [CODE] Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in C:\xampp\htdocs\awah.biz2\classes\class_lib.php on line 34 [/CODE] please tell me what to do , here is the class_lib.php: [CODE] <?php class …

Member Avatar for bavenbabu
0
171
Member Avatar for dhaval.2cool

Frnds i want to insert image into picture box using the file dialog and that image should get stored into a local folder..... But the problem is the image is not getting saved n the below line is throwing an exception. i want to also rename the image with my …

Member Avatar for dhaval.2cool
0
152
Member Avatar for moone009

What I am trying to do? update a database field with a richtextboxfield. Please help. I have tried using Dim range1 As New System.Windows.Documents.TextRange(RichTextBox1.Document.ContentStart, RichTextBox1.Document.ContentEnd) but this did not work for me either. [CODE] Dim cnn As SqlConnection Dim connectionString As String connectionString = "Integrated Security=SSPI;Initial Catalog=rploperations;Data Source=" & Environment.MachineName.ToString …

Member Avatar for M.Waqas Aslam
0
197
Member Avatar for Traps

I figured this would be the best suited place to post this since this isn't really language-specific... So I'm wondering how a try/catch statement [I]actually[/I] works (I know how to use them so that's not what I'm asking), like what happens on machine-level or runtime-level etc when a try/catch is …

Member Avatar for Rashakil Fol
0
373
Member Avatar for Niittii

Here is the Login.jsp: [ICODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Login</title> <script type="text/javascript"> </script> </head> <body bgcolor="#999966"> <p>&nbsp;</p> <form method="get" action="http://localhost:8080/WebApplication1/Login"> <% if (request.getAttribute("error")!=null) { %> Login failed. Please try again <BR><HR> <% } %> <p> &nbsp;&nbsp;&nbsp;&nbsp;Username: <input type="text" name="uname" size="20"></p> <p> …

Member Avatar for vtm
0
485
Member Avatar for sphe_g

Hi all I need help with connecting to and manipulating a microsoft access 2007 database using code in visual basic 2008 express edition. It's for a project I'm doing for University that's due on the 12th of October:S. Please help me out in whatever way you can - links to …

Member Avatar for lansky
0
1K
Member Avatar for WithnoMute

Hey, i am learning from Programming from the ground up. I am having a bit of trouble with the pushl and popl commands. I'm a newbie with ASM and really just starting out on it, i am on a x86-64 im presuming it will run the x86 32bit code. I …

Member Avatar for jmarbas
0
835
Member Avatar for wonderlandslost

So my instructor assigned us to create a program that calculates the area and stores that, along with coordinates, in an array. This has to be done for both triangles and squares. He is having us use separate classes for the project; the main Drawer class, parent class, square class, …

Member Avatar for wonderlandslost
0
307
Member Avatar for flasp

Greetings all been a while since I last posted. Let me explain what I need help for.. I want an Android App where you can watch livestream /screenshots from a placed camera in a store. You can already watch the cameras filming on a computer. We have some assumptions on …

Member Avatar for flasp
0
87

The End.