199,113 Archived Topics
Remove Filter ![]() | |
Hi all, Im fairly new to java. Im wanting to connect to mysql but the following is thrown Exception: com.mysql.jdbc.Driver have i missed something? here is the code [code] import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class MySql { public static void main(String args[]) throws Exception { Connection con = … | |
Hello I am writing a script that will replace the src of an image when the user hovers over it. I am using jquery and regex to accomplish this and have tested it on my local server but the src of the images on the live server is different and … | |
I'm using a cross-compiler that generates MIPS binaries from c++ (mipseb-linux-g++). What I want to do is tell the compiler to use a specific ISA (namely MIPS I). From what I can tell this is a machine option that should be easily configurable. I've tried changing the option in my … | |
I have been studying PHP/MySQL on and off again for the past few years and I decided the only way I was going to learn it was to create my own web application. We're going on a road trip in a few days and I got the idea to create … | |
Hello everyone! I wrote a basic c++ program using classes and pointers. Although it compiles without any errors, it will not run, saying "This program has stopped working". I am assuming that this issue may have been created by a memory leak, but I made sure to delete all dynamically … | |
Hi I'm trying to integrate a google checkout button with a basic php variable - and am having trouble with formatting. Here is the code: [code=php] echo "<h2>" . $row['name'] ."</h2>"; echo '<form action="xxx" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" target="_top"> <input name="item_name_1" type="hidden" value="Item"/> <input name="item_description_1" type="hidden" value="Watch Repair Service"/> <input name="item_quantity_1" … | |
Hey All. I'm trying to figure out how to search for a string within my file and if the string exists, I want to get whatever follows it. Here's an example: HighScores.txt ---------------------------- Devin: 202 Corey: 185 Nick: 315 Patrick: 112 ---------------------------- If my program opens the file, I'd like … | |
I'm writing a script that will search file names looking from certain file extensions. The thing is, is that I am looking for multiple extensions, and the list may change. I could write an if statement using "and", but the line just gets a bit long and can become difficult … | |
Hi all, I am trying to link to an external library (the boost regex library) under gcc. I am ashamed to admit that what I know about linking external libraries comes soley from modified snipets from online forums. My problem is as follows; I use to keep all my source … | |
The JS starts with: <script> var tblId = 'TBGenericRecs0'; var nTable = ""; then later: function mapTable(){ nTable = document.getElementById(tblId); nRows = nTable.rows.length; Firefox says nTable is not a function and the code does not work. IE sees it as a variable and it works. What's up? Is there a … | |
So i have a system, and i was creating a page to input player stats. However there are 5 rows that have be inserted per game from a single form. I have the code for the form and the insert code. I was just wondering if someone could help me … | |
![]() | Hello Java friends I'm trying to make a program, using NetBeans, to allow users to scan (using a external scanner) ISBN numbers on books and using this ISBN number to link up to a website to retrieve the information regarding the book(i.e Title, Author, etc). I have not tried using … |
Hello, I am trying to calculate the value of pi (just for fun, I know it's already done for millions of decimal places), the program I made works fine, but the problem is that, it is constrained by the accuracy of [I]double[/I] values. Is there anyway to create 'extendable' floating … | |
Hey, I have the following codes: [CODE] // In Form1.h protected: ItemGroup^ History; ItemGroup^ Favourites; [/CODE] [CODE] // In Form1(void) History = (gcnew ItemGroup()); Favourites = (gcnew ItemGroup()); [/CODE] [CODE] // ItemGroup public: ItemGroup(void); int Length() { return _length; } Item^ Items(int _index) { return _items[_index]; }; void Add(String^ _text) … | |
Hi all, this is my first post. A couple days ago, in preparation for a math final, I attempted to code a program which would allow me to solve triangles (law of cosines, sines, etc.). Now that the test is over, I am now interested in getting it working. [CODE]#This … | |
Hey guys and girls, I am extremely new to coding, and I would appreciate some help. I am trying to write a code in which someone inputs a number, which is part of a file name, then I do stuff with the filename. Here is the part that I am … | |
I've been trying to use substring to get the last three digits as part of the extension but wasn't successful. Can anyone tell me how I can extract the extension from the file name? Rgs | |
I know it sounds stupid but I want to try this with the kind of for (not the norma for i=0 i<9; i++) but the other one with arraylist. is this possible? If yes please help me match data types Thanks [CODE=JAVA] import java.util.ArrayList; import java.util.List; /** * Created by … | |
| |
Hello! My name is Page, and I am learning how to code in Java. I am working on a program, and it was homework at one time, but the assignment due date is passed. I would just like to get it going so I can learn from my mistakes, and … | |
I'm trying to add this XML element: [CODE]<cp:prop name="given_name" value="UK" />[/CODE] It has to be formatted exactly as above. I've tried this but it formats differently: [CODE]Dim cp = XNamespace.Get("cp") Dim newElement As New XElement(cp + "prop", New XAttribute("name", "given_name"), New XAttribute("value", givenName)))[/CODE] It formats like this: [CODE]<prop name="given_name" value="UK" … | |
Hello everybody ! wow my first time on danyweb ! ;p Well, here the deal. Im doing a script that basically copy and past into the local drive a specified directory with all this files. Im doing the copy with a copytree which is working well. But, (and I know … | |
I have a project where I'm recursing into drives specified by the user and am getting rid of any "invalid" characters defined in a RegEx pattern. I'm very new to this and C#, so any help would be appreciated! If the file contains ANY of these characters: | # { … | |
I am trying to use the session start function but everytime I try to use it, it gives 2 errors: [QUOTE] Cannot send session cookie - headers already sent by (output started at /var/www/form/send.php:11) in /var/www/form/send.php on line 12[/QUOTE] [QUOTE]Cannot send session cache limiter - headers already sent (output started … | |
Hello Freinds,:) I want to make client server coding with C# windows Application with LAN If i saved data on client system it also save in server System.:$ for that i dont have any knowage about client server system & also i dont have any coding for that Please help … | |
Hii i am building a financial database. And I have data for each stock for all the days. I want to avoid multiple entry of a stock for the same timestamp in the database. For eg I dont want to have the data for google on 30 jun 2010 twice. … | |
Hi guys When I ask VB to display a date obtained from a field in Access I get a date that displays the day ok, the year okay but it displays the month as 00. In other words 20100029. Now, I have to evaluate the date difference between todays' date … | |
Hey guys, I hope someone can help me with the idea behind this. I'm setting up a website in which members can have their own personal profile which displays all their information. I have 8 items that I want users to be able to make private or public. So in … | |
Hey guys i seem to be having an issue with the following code: [CODE]// show solution to variable scope problem using "the heap" // a block of memory controlled by the programmer #include<iostream> using namespace std; double* Function() { double* dLocalVar = new double; return dLocalVar; // give address of … | |
I want to save image from Picture box to SQL Server DB. I am trying to do this using the following code but cannot able to do so. Please help. My Code Snippets are as following: Dim fs As FileStream = Nothing fs = New FileStream(picPhoto.ImageLocation, FileMode.Open) Dim fi As … | |
I followed a tutuorial to send gmails through a C# app. Im making a console app and this code fails I have no idea whats wrong... [CODE]class MainClass { public static void Main (string[] args) { sendMail mailSend = new sendMail(); mailSend.mail("stmp.gmail.com",465,"sendersemail@gmail.com","senders password","fromadress@gmail.com","toadress@gmail.com","Subject","Body",true); } }[/CODE] [CODE] public class sendMail { … | |
hi all, i have one question about variable in JavaScript [CODE]<HEAD> <TITLE>Window Opener and Closer</TITLE> <SCRIPT LANGUAGE="JavaScript"> var newWindow function makeNewWindow() { newWindow = window.open("","","HEIGHT=300,WIDTH=300") } function closeNewWindow() { if (newWindow) { newWindow.close() newWindow = null } } </SCRIPT> </HEAD> <BODY> <FORM> <INPUT TYPE="button" VALUE="Create New Window" onClick="makeNewWindow()"> <INPUT TYPE="button" … | |
I'm still interested if someone read this book since it's based upon standard C++?! Can one learn C++ over Visual... I mean what's difference anyway, except M$ is involved in Visual ?! | |
I have this problem that I can't figure out, I can't figure out the line statement that needs to go in. Here's the problem [code=c] struct NodeType { int data; NodeType* p; }; NodeType* p; NodeType* q; p = new NodeType; p->data = 18; q = new NodeType; q->data = … | |
The API says that the implementation of BlockingQueue are thread safe, but about the drainTo method, it says : [QUOTE]"This operation may be more efficient than repeatedly polling this queue. A failure encountered while attempting to add elements to collection c may result in elements being in neither, either or … | |
what i am trying to do here. is to let the user type a hexadecimal number [code]http://en.wikipedia.org/wiki/Hexadecimal [/code] and then display it. [code] import java.io.*; class Ex23 { public static void main(String[] args) { Console console=System.console(); System.out.println("please type a hexadecimal number"); String input; input=console.readLine(); int number; int number=Integer.parseInt(input); int count=0; … | |
hello.. i want to do custom cursor in particular place in my webpage. i have number of images when mouseover on images then cursor image change as a custom cursor. how to do ? | |
hi, i had done validation in my program...it is validating and entering the values also...the problem is if i m giving the same value which is in XML file...it is taking not showing any error...can any one check my code and suggest me the solution..2day evening is submission of my … | |
Hi, I have pretty just started javascript and I have to say it is the hardest language to learn probably due to the lack of official documentation or something like that. If someone can point me in the right direction for documentation, that'll be great. On the other hand, php … | |
Hi, i'm one of those annoying students here to ask questions :) this is what is asked for my assignment >(Invoice Class) Create a class called Invoice that a hardware store might use to represent an invoice for an item sold at the store. An Invoice should include four pieces … | |
hi everyone i made crystal report then i saved it as a word document but i passed parameters to that report then an error occured after that the error is:- missing parameter values ok i tried to save it with 2 different codes but th same error shows up the … | |
hi experts i have a csv file which look like this country,date,[COLOR="red"]code[/COLOR],time mexico,3/13/2008,[COLOR="red"]92,[/COLOR]00:00:00 mexico2,3/13/2008,[COLOR="red"]5214[/COLOR],00:00:00 mexico2,3/13/2008,[COLOR="red"]5214[/COLOR],00:00:00 i am reading the file like this [code] StreamReader sr = new StreamReader(@"C:\Documents and Settings\jitendra\Desktop\RIC_SELL_080318.csv"); string strline=""; string[]value=null; while(!sr.EndOfStream) { strline=sr.ReadLine(); value=strline.Split(','); if(values.Lenght >3 ) { Console.WriteLine(values[2].ToString()); } } [/code] so on doing this i … | |
[B] Hi, I'm unable to change the font colors by using java. Can u please help me that how can i change the font colors in java. If you possible please share that respective Font Code. [COLOR="Green"] Thansk & Regards, Jayavardhan Tummidi. [/COLOR] [/B] | |
what i am trying to do here, is to make it possible for the user to type 2 lines, and then say(or display) whether the string of the first sentence correspond to the string of the second sentence. so for example: first sentence: i will go shopping second sentence: Tomorrow, … | |
I have a form (Delphi 2010) that includes several data controls, including a DBImage. All these are hooked to a underlying MSSQL 2005 database and table. I'm using ADOConnection and ADO Table for ease of use. I need to include image data in this table, so I have set up … | |
I tried to do this [CODE]ArrayList<String> a=new ArrayList<String>(2); a.add("dss"); a.add("dsfs"); a.add("fsfs"); [/CODE] Though i have specified a limit of 2 on the collection, i am able to add more. If this is general about Collections, is there any Collection which sets a limit and strictly follows it ? | |
hello sir , i am the student of IT. which course should i taken form the following java ,.net, php. please tell me about that. | |
[code] cmd = new OleDbCommand("update FINAL set STATE_CODE=@STATE_CODE,DAC_CODE=@DAC_CODE,SCHOOL_CODE=@SCHOOL_CODE,STUD_TYPE=@STUD_TYPE,SLNO=@SLNO,NAME=@NAME,CLASS=@CLASS,SECTION=@SECTION,REGNO=@REGNO,OP=@OP,PRI_FLG=@PRI_FLG,SERIAL_GEN_FLG=@SERIAL_GEN_FLG where FILE_NO=" + textBox1.Text.ToString() + "", con); cmd.Parameters.AddWithValue("@FILE_NO", textBox1.Text); cmd.Parameters.AddWithValue("@STATE_CODE", textBox2.Text); cmd.Parameters.AddWithValue("@DAC_CODE", textBox3.Text); cmd.Parameters.AddWithValue("@SCHOOL_CODE", textBox4.Text); cmd.Parameters.AddWithValue("@STUD_TYPE", textBox5.Text); cmd.Parameters.AddWithValue("@SLNO", textBox6.Text); cmd.Parameters.AddWithValue("@NAME", textBox7.Text); cmd.Parameters.AddWithValue("@CLASS", textBox8.Text); cmd.Parameters.AddWithValue("@SECTION", textBox9.Text); cmd.Parameters.AddWithValue("@REGNO", textBox10.Text); cmd.Parameters.AddWithValue("@OP", textBox11.Text); cmd.Parameters.AddWithValue("@PRI_FLG", textBox12.Text); cmd.Parameters.AddWithValue("@SERIAL_GEN_FLG", textBox13.Text); int n = cmd.ExecuteNonQuery(); if (n > 0) { … | |
Hi again Daniweb! Im just fishing for ideas here, Im not a great coder - I'm currently working with c#.net in visual studio. a new jpeg is being posted to the ftp server every 3 seconds...I want a client side app that can dowload this new jpg every 3 seconds...the … | |
Me again (Huge Project...) This is the code for my image upload, but it is not working... I also want to set some parameters such as file size and to make sure that only photos are uploaded. The tutorials on the web is quite confusing...help please. Thank you [CODE]if(isset($_POST['submitted'])) { … |
The End.