64,152 Solved Topics
Remove Filter ![]() | |
This is part of the last coding that codeorder helped me with. I didn't include this in the last post because I thought this was something that I was going to be able to do. Unfortunately, it is not working properly. In addition to the controls being removed, the control … | |
Hi all, I'm using Hibernate, HSQL and Spring. But i have the following ugly errors. I don't know what to do. Any help will be appreciated. [code=text]org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate … | |
I was trying to find a solution for checking the symmetry of a tree. I would like to get some comments on the approach.. I am trying to do it by modifying the inorder traversal thing.. The pseudo code is: [CODE] // since the structure should be similar string in1,in2; … | |
Hello guys. I have an integer that is storing the result of a division between two numbers. I usually recieve an result that looks like [ICODE]5,2496874654[/ICODE]. How can I limit the variable length so it looks more 'approximated', like [ICODE]5,25[/ICODE]? Thanks in advance! | |
Hi everyone! For a 'learning' experience, I'm looking to write my own webserver in C#. I know most people would just write me down and say "Why are you wasting your time, just use a premade webserver!". But that's not the point - the point is to learn. I want … | |
hi, i have this code: [CODE]#include<iostream> #include<sstream> #include<string> using namespace std; int main (char argc) { string n1 = "141+246+3+64"; int n2; int pos = -1; char toFind = '+'; do { pos = n1.find(toFind, pos+1); if(pos != -1) { stringstream(n1) >> n2; cout << n2 << endl; cout << … | |
Hello! I need to read from a txt file ip:port (or in some lines ip:portDdateCinteger). But i can not do it because there is no nextChar method on Scanner class. The txt file is like this: 332.234.32.11.11.222:8080 123.32.45.43.32.11:8976D12.01.2010C5 44.44.111.114.44.43:220 222.333.44.55.66.77:8089 111.11.11.11.22.33:8080D01.01.2009C1 ... There are million line on txt file. I … | |
How to add serial number like column in jtable at left side of jtable? | |
Hi OK, so I am reading on OOP in Python, and I am an old C/C++ programmer so I have somewhat high expectations :). My question is regarding private/public variables. Per default, all class data members are public, but if we precede them with a double underscore, they become private. … | |
Hi all, i made some modifications to my code which i wrote previoustly. But when i run it, the previous code is executing. i showed a msgbox inside button click.Next day i erased & it wrote a different code. when i click it still the msgbox is being appeared. PLZ … | |
l am writing XML to a file. Everything works fine, however if l view the XML source the first line is always indented. Cant seem to figure out the cause. Thankx in advance for the help | |
Can anyone check out this script? My ajax code doesn't run and the xmlhttp.status is always 0 though it is always 200 in my other scripts. I am sure there is something wrong with my script. Can anyone help me fix it? I tried to debug it for hours but … | |
So I have 2 picture boxes, a textbox, and a button. One of the picture boxes adds another row with the same controls but moved down when clicked and the other picture box (should) remove the same row that it was clicked on. I have PictureBoxAdd1, PictureBoxRemove1, TextBox1, and Button1 … | |
Hi, I'm trying to check the login. The values of id and pw are send from a textbox and the values of userid and password are from a mysql database. I try to compare them and if they are equal i want to return true and else return false. But … | |
Hi guys I encounter an error everytime I run my recursion program which contains a messagebox. Here is the error: The name 'MessageBox' does not exist in the current context and here is my code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication10 { class Program { static … | |
Hello, im writing a C program that needs to get a value from my database and put it into a temporary table. so far i can get the value from the database and insert it into my temp table. if i fill in the right value in the where clause … | |
hi, I am trying to make a calculator and I need the stringstream function to convert a a certain part of a string.[CODE]string n1 = "243+79"; int n2 = 0; stringstream(n1[0-2]) >> n2; // this converts the 243 from n1 to an int[/CODE] Any solutions? | |
![]() | I am trying to let users upload .flv files that will be played through flow player. While I am not getting an error, the file is not copying to the ftp folder. The upload script I have is [CODE] if ($_FILES["file1"]["type"] == "video/flv") { $path1 = "uploads/".time().'.'.$HTTP_POST_FILES['file1']['name']; $path1 = str_replace … |
Background: I have a Drupal site with around 150 users. Each of those users has a spreadsheet that they send to me weekly. I've uploaded all of the spreadsheets to an Editgrid account and I've created a custom drupal block to display there Live spreadsheet and edit it so removing … | |
Pease please help.. with visual basic 2008. I am trying to get ListView to work but it does not for me. I already set up ListView with 3 colums, but the coding is not working first column called ITEMS, second Quantity and 3rd is PRICE. All items are on Buttons … | |
the problem here is When I check 1 checkbox there's no mysql error but if the checked checkboxes are more than 1 then an error occurs. it only takes the first but the following checkboxes occurs an error. the code can be downloaded here. the file of the problem is … | |
I am having trouble structuring an sqlite update statement that has multiple parameters. The following code does not raise an exception, but nor does it update my table. After extensive googling and searching Daniweb, I think I'm looking right at the blindingly obvious and missing it. I have a list … | |
Hi Everything in Python is treated as an object, so [CODE] i=5 i.imag [/CODE] makes sense, i.e. the variable [I]i[/I] has some associated methods. But why doesn't the following example work? [CODE] 5.imag #error [/CODE] One would think that it should work, since the integer "5" is an object just … | |
Can someone please tell me what i am doing wrong with this code. I have created a dataset and want to push that data into crystal reports. [CODE] Dim rpt As New CrystalReport1() 'The report you created. Dim myConnection As SqlConnection Dim MyCommand As New SqlCommand() Dim myDA As New … | |
Hello guyz, I'm glad I finally back here. I need help using the preg_match function. I am scraping url and I need to get the specific value from the html tags. Here is the string [I]<p><b>1,664</b> Referring IP addresses</p>[/I], I need to get [I][B]1,664[/B][/I] How can I achieve it using … | |
hello friends i want to add confirmation box to my delete option in the pagination code so when the user want to delete the record before deleting it may as for the option yes or no...below is my code and the code in bold is the delete code.... <?php mysql_connect("localhost","root","")or … | |
Hi, I'm just trying out something with returning values to a variable and I've encountered a problem. Basically the program is supposed to return the value of [CODE]string x[/CODE] as either true or false from the [CODE]isEven[/CODE] function, then the [CODE]void output[/CODE] function should output the value of [CODE]string x[/CODE] … | |
I have the following code in a .js file: [CODE=Javascript] function clearVillage() { /*Do Something...*/ } [/CODE] Now in my HTML page generate through PHP, If I call this function through a link like this: [CODE=HTML] <a class="fg-button ui-state-default ui-corner-all" onclick="clearVillage();" >Clear Village</a> [/CODE] It works. However, if I replace … | |
I'm writing a program but I don't understand the question that well could someone help explain what I have to do. Also, I am having difficulty making the methods could someone help, because I am getting an error every time. This is the Question. Write a cash register class. It … | |
I hope the title made sense. ok ive got a table in a PostgreSQL database that has a few coloumns in it. What im tryting to do is the following: [CODE]<?php $totaltimetodayresult = pg_query($link, "SELECT SUM(acctsessiontime) AS totaltime FROM radacct WHERE acctstarttime LIKE '%".$today."%'"); while($totaltimetodayarray = pgfetch_array($totaltimemonthresult)){ $totaltimetoday = $totaltimetodayarray['acctsessiontime']; … | |
Hi.I have a piece of code that compiles without even a warning on the borland 5.5 compiler yet complains bitterly when compiling with g++.I've heard that g++ emits more portable code but shouldn't they both be standard compliant?From what i've read in the '98 standard book this should be legal … | |
Whats the difference between [CODE]using namespace NameSpaceName;[/CODE] and [CODE]namespace NameSpaceName;[/CODE] ? | |
![]() | A recent assignment involved using very large integer values. A formula and very large x values were given and we had to compute the value of f(x). The tutor suggested using long long values as the 0 < x < 10^18. The function F(x) = F(x/2) - x if x … ![]() |
[CODE]1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 A * * * * * * * * * * * * * * * * * * * * B * * * * * * * * … | |
Hello all! Okay, I have made a very small stand alone application used basically as a program launcher for a very specific purpose. The application will be run off of a thumb drive, and used several times a day, and on several different machines, for about a month. No internet … | |
Hello everyone. I've been programming on a co-op RPG for quite some time now, but my networking side has seen some troubles. I'm using the lower level serverSocket-Socket way. Everything runs flawless within my own network, however connection over the internet is where the trouble is. I understand this is … | |
Hai all, AM trying to connect java with database .I created class called data manager with several methods like setdburl(), getdnurl() ,etc.. i called the set functions inside another class and assign values. in set method i assigned LOCAL VARIABLE. when i call get url method it shows null value.. … | |
How to keep look and feel of java program as classic windows style , even the style of the windows change to windows xp look, or aero look? I mean permenantly keeping classic look? Has any one has any idea? Thank you............... for any advice , help... :) | |
need help on this; I want to have the textbox4 to have the sum of columns based on their employee Id. I have this code but kept getting error. strsql = "SELECT emp_id, COUNT(acdcalls) FROM CMS WHERE emp_id= '" & TextBox1.Text & "'" oledbcon.Open() Dim cmd As New OleDbCommand(strsql, oledbcon) … | |
hello I am looking for a code where i can put a photo in mysql data basic so when the dj name comes up on the home page there photo comes on to if this can be done? | |
Instance variable does mean you will get new value with every new object created of particular class rite? I tried it myself eg: [CODE]class simpleinstcheck { static int i; void incr() { System.out.println(i++); } public static void main(String args[]) { simpleinstcheck sc= new simpleinstcheck(); sc.incr(); simpleinstcheck sc1= new simpleinstcheck(); sc1.incr(); … | |
Hi, I am new to ASP.Net. I would like to know if there is a way by which I can Call a Serverside script through a Javascript. Or else is there a way to Postback a page through a javascript function. Thanks in advance Thanks, NaveenChander | |
Hi, I can't figure out how to write this query, I'm sure it's something silly, but I just can't figure it out!! I have a table with student's grades in different classes they took, example- studId, classId, yearClassTaken, grade 1, 11, 2008, 90 1, 12, 2008, 78 [B]1, 13, 2007, … | |
Hi, How to restrict user to copy and paste datagridview data to word or anywhere. How i can do this. Thanks in Advance........................ | |
Guys need help.. I have button that adds element in array and displays the item that is added in array in the listview, And also i have button that deletes it but it's not working. Here's the code: [CODE]Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click … | |
Hi All, I have a section of my site that allows users to upload and download files. For security issues, We use a com object to take the file as a binary stream and store it on our network off of the web server (under a different randomly generated file … | |
Hi, i am compiling the code in HP itenium server and i am getting an error. "Filename.cpp", line 129: error #2308: more than one instance of overloaded function "std::basic_string<_CharT, _Traits, _Allocator>::assign [with _CharT=char, _Traits=std::char_traits<char>, _Allocator=std::allocator<char>]" matches the argument list: function "std::basic_string<_CharT, _Traits, _Allocator>::assign(const std::basic_string<_CharT, _Traits, _Allocator> &) [with _CharT=char, _Traits=std::char_traits<char>, … | |
Hi to all i have done validation on single fields but i have to apply validation on 3 text field that at least one of thre is filled .i make a code but that logic doesnot work .. html code [CODE]<html> <head> <script type="text/javascript" src="jstest.js"></script> </head> <img src="idtech_logo.jpg" alt="logo" width="1500" … | |
Hi, i am a computer science final year student, i was thinking of creating an online voting/polling system,the system could include surveys as well. I really need some ideas in designing the system and any idea you send to me will be highly appreciated. |
The End.