199,114 Archived Topics
Remove Filter ![]() | |
I've a bill which looks like  this is the paper which i use in printer and i want to print the appropriate value in the correct position of that paper. As in the place of date i want to print date and in the place of Rate, Amount … | |
I have a doubt in asp.net i created one form in ASP.NET using VB in that how to show message box after clicking a button | |
I have a question in SCJP text book by Kathy Sierra and Bert Bates in Development chapter. Q. Given the default classpath: /foo And the directory structure: foo | test | xcom |--A.class |--B.java And these two files as mentioned in the code snippet section. Amongst the choice, 1. javac … | |
I am wrote a program that generates 20 random numbers from 1-99 and put them into an array. I am trying to sort them with a bucket sort, but I can't figure out how to do it. I have searched google and yahoo for information but everything I find just … | |
Hi everybody, Explain me please what I'm doing wrong. So I'm trying to create a database and store data, that I get from django forms. Everything looks fine, and when I manually check database it shows that it recieved a new row, however my browser gives me this message and … | |
I am using the CUDD package for BDDs manipulation. I want to make a copy for a big data structure in it that is called the DdManager. The problem is : this data structure has so many pointers inside it , so when I make a direct copy it is … | |
here is my code for edit user detail but selected id is not showing .only showing last inserted id. please help me for correct this code.. my view code <?php //connects to database $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); //select table … | |
Hello there, I'm creating a forum system. On the main page, I display the latest posts, but I want that when it reaches 10 posts, a small menu with numbers appear at the bottom, that links to next page so people can see other posts, for example, like the one … | |
I am generating the sequence 1,3,8,22,60,.... upto 10^9 the term mod of 10^9+7; However my code is giving inaccurate answers for large value of n. The formula I am using is ((1+Q)^(n+1)-(1-Q)^(n+1))/(4*Q) Here Q is sqrt (3) Here is my code.Can someone point out the error in the code or … | |
Please help me in the following question: Given the following three tables Table 1: specialization (name,department) Table 2: area (a_name,phone,address) Table 3: dep_loc (area_name,department) where the "area_name" attibute in dep_loc references "a_name" in area. Write a query to give a count of the number of people that work in each … | |
hi all. I have a form in [COLOR=darkred]page1.jsp[/COLOR]. the action for that form submit is in [COLOR=sandybrown]page2.jsp[/COLOR] so I want to just come back to the [COLOR=darkred]page1.jsp[/COLOR] after processing the request.(reload the first page again) so in [COLOR=orange]page2.jsp[/COLOR], how can i redirect the display page to the [COLOR=darkred]page1.jsp[/COLOR] here I … | |
Hi all, I am currently trying to remove the zeros from a string the code I have tried is as follows but it does not seem to work propperly Dim code code=request("code") 'here there is a string like 0000045 ' I want to remove the zeros Dim c1 c1 = … | |
General rules is that: 1) A private method cannot be overridden. 2) Subclass method should be a lower access modifier than a overridden superclass method. But the output of the program is "I am Son". Why? Is it because of the rule 2 the output comes? If that's the case … | |
I have three javascript/jquery scripts and I need all of them. I am new in jquery so not able to add all three scripts. If I do all then one of them do not work. I need to put all three scripts into one. <script type="text/javascript"> $(function(){ // off $("#pgfor").twoitems({ … | |
Hi , I need to know how to pass html element into jquery function. My sample html code is given below: <html> <head> <script src='../../core/js/jquery-1.4.2.min.js'></script> <script src='../../core/js/jquery-ui-1.8.1.min.js'></script> <script src='../../core/js/extensions.js'></script> <script src='../../core/js/prot-lib.js'></script> </head> <body> <table> <tr> <td class='r1'> <chl class="chl"> <chli class="menu-list"> <li id="s0" class="item" onClick="handle('s0')">NJ</li> <li id="s1" class="item" onClick="handle('s1')">TX</li> </chli> … | |
Hey guys, I'm a starter so I had a doubt related to placement of a static variable. On line 5, for "static int d=5" compiler issues "illegal start of expression". But when I place it outside main() as Instance variable it works and prints "Hello 5". Why this thing? public … | |
Hi again. I am trying to make code that set all black pixels to white. But my code does nothing. Why is that? package net.viped; import java.awt.image.BufferedImage; public class ImageManipulation { public ImageManipulation() { } public BufferedImage setTransparent(BufferedImage image) { for (int x = 0; x < image.getWidth(); x++) { … | |
Hello, I'm still working on project filter SqlDataSource with parameters. 1.Button1 is my first develope code which is working fine with Dropdownlist controls. 2.But, now I want to move to filter with Checkboxlist items. I have write code under Button2_Click event. I have combine codes of my current knowledge which … | |
Hello, I want to change the datatype of a field from Varchar to integer in T-SQL. I tried something like Modify like you use in Oracle. ALTER TABLE tablename MODIFY COLUMNNAME Datatype. But its not working in SQL server.. Any thoughts. | |
i came up with a quite annoying problem in inserting data into the database in vb.net using the textfields. i tried out with many different ways,but could not sort out this problem. i used datatables,dataadapters,datasets.Plz if anyone can help me out. [B]The condition is :[/B] i am using four tables. … | |
How to create session in ASP by certain method in Notepad. | |
import java.util.Scanner; public class waterbill8 { public static void main(String[] args) { Scanner reader = new Scanner(System.in); double value1 = 5.00; double value2 = 0.82; double value3 = 0.65; double value4 = 0.42; double value5 = 15.00; double value6 = 1.47; String read1 = null; char I, R; int num1, … | |
#include<iostream> #include<fstream> #include<string.h> using namespace std; int main() { //system("clear"); cout<<"\npls input the file where you want to read the data from\n"; string loc; getline(cin,loc); ifstream g; g.open (loc.c_str(),ios::in); string data; g>>data; cout<<"\n\n\n\n"; cout<<"\nthe data read from the file is\n"; cout<<endl<<data; return 0; } > even if fiole being read … | |
I'm trying to redirect about 40 web addresses from an old site to a new site. I was able to redirect all of the pages that DO NOT have a ".aspx" in them to the new site using .htaccess but I cannot figure out how to redirect the .aspx links. … | |
Well, I can't say it correctly, I'm sure the title is not what I meant, I just didn't know how to say it... But anyways, I inserted some text in a table in a dtabase, for SQL injection reasons, I stripslashed it or should I say "I used real_escape_string" But … ![]() | |
Hi, I have a this code which works OK: class c <T> { public T method (T p) { // ... } } but I would need this: class C <T, U> { public U method (T p) { // ... } } How could I write it, compiler reports … | |
Hi, for a school project (exam actually), we've written a ternary trie for text-completion. We fill it with about 400.000 lines of text (13 MB in total, as UTF-8). Now, java represents characters in UTF-16 i believe. So thats 26 MB, + another 26 for saving the complete strings in … | |
Good Afternoon, I'm having problems with my program that deals with fractions. The problems are with the functions multiply and divide that are not working correctly. So far I have this code. CPP FILE: #include <iostream> #include <cmath> #include "hw4_head.h" using namespace std; int main () { int a, b, … | |
I have the following code where I have several small problems. I have included some comments as I can't seem to get my 'pop up menu' button to work in order to retrieve the number of columns requested by the user. I then need to be able to get the … | |
Hi guys! I start using Python few days ago, for a game server ( it'a an online game ). I made a server for that game, I start it on my pc, and for do this I need to start Server.py too, or, it wouldn't connect to the server. I … | |
So I wrote this code for generating a maze, when I run it i get ArratOutOfBoundException. sometimes it gives me the error after generating the maze once but sometimes I generate couple time then it crashes. I feel like my error is in the while loop but can't find it. … | |
I am trying to overlay a moving average over a OHLC chart but I get no results. Any ideas on what am I doing wrong ? private static OHLCDataset createPriceDataset(String filename) { //the following data is taken from http://finance.yahoo.com/ //for demo purposes... OHLCSeries s1 = new OHLCSeries(filename); try { BufferedReader … | |
My PHP page displays correctly on my localhost but after pushing it online it does not display; nothing shows even when I inspect the source code. Any help? | |
Hi this is my delete.php <?php $con = mysql_connect("localhost","matanc_cmd","123123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("matanc_cms", $con); // check if the form was submitted // get the ID (cast it to integer if it is supposed to be integer) $id = (int) $_GET['id']; mysql_query("DELETE FROM content … | |
![]() | Which of the following correctly sets up a PHP array?? 1. array() = $array_values[]; 2. $array_values = array(); 3. array() = $array_values[]; 4. $array_values = new array(); ![]() |
Hello everybody, I'm trying to improve an application i found at this link [Click Here](http://www.alcrypto.co.uk/satmap/tkinter-video.py) which can load and play a video file .avi or .ogg. My problem is as follows: I'm unable to load another video file though i have access to the dialog box. In addition to that, … | |
Hi This is the first time I have really played with calendars in PHP and am a little, no, a lot stuck. The MySQL database holds "job_id", "visit_date" which is a timestamp and also "engineer" which is one or more names seperated with : My planner needs to have the … ![]() | |
Following are the server-client programs,,,, in this client can send files and server have to save it,,,,,i want to add progressbar.....plz help me out!!! client:- import java.net.*; import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; class ftpclient extends JFrame implements ActionListener { JButton b1,b2; JTextField t1; ftpclient() { b1 =new … | |
I wanted to write the brute force algorithm for string matching by multithreading. I have made the program by using a single thread. In multithreading sample code, I have initialised the no. of threads to be strlen(text)-strlen(pattern). I do the matching in the ThreadFunc. Do I have to divide the … | |
is it possible?? $a= 5; $b =10; $c= "+" $d= $a.$b.$c; How can I do dynamic calculation like this. I know this code will not work. But Just want to use opereater directly input through form. How can I prevent opreater to converting into string. ![]() | |
| |
i have created a chat program and i want to add smiley to it......i know how to add smiley in a program,but my logic works for single smiley in a message.......want logic for multiple smiley in prgm,,,, int zi=msg.indexOf(':'); if(zi!=-1) { try{ st1=msg.substring(msg.indexOf(':'),msg.indexOf(':')+2); String msg_start=msg.substring(1,msg.indexOf(':')); int msg_end_index=msg.indexOf(':')+3; if(msg_end_index>msg.length()) msg_end=""; else … | |
I have a group of files (A.txt, AA.txt etc) in the form A.txt : A,45,56,78,98,11,23 A,98,90,33,76,30,40 AA.txt : AA,65,76,34,76,98,12 AA,12,76,33,76,33,89 How can I quickly remove the symbol column (A,AA) from all these files using Python? (I want to use python because the number of txt files is 3200) Thank you. | |
I am in course that uses Gaddis' Starting Out With Pyton 2nd Edition. There is a problem in the course that asks use to write a program that would capitalize sentences that a user inputs. I have come up with a reasonable solution, but I have two major problems. The … | |
Following on from my post yesterday (how to anchor buttons/controls to various sides of the current form when the form is resized) I have run into another problem. I am setting the width of my datagrid to be 80% of the form width on a 'form resize' event with 10% … | |
Hi, I'm working on one project in .NET 4 and I use LINQ for database access. I have a problem. Consider a following code: Guid userId = new Guid(Membership.GetUser().ProviderUserKey.ToString()); IEnumerable<ViewCount> views = from vc in dbContext.ViewCounts where vc.Time >= dateFrom && vc.Time <= dateTo group vc by new { catalogueId … | |
Hello everyone! i have problem in inserting data in my database from textbox, i m using c#. the code in .aspx.cs file is using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.Sql; using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { SqlDataAdapter da … | |
<?php include 'functions.php'; if(!loggedin()) { header("Location: index.html"); exit(); } $session = $_SESSION['empno']; $dbName = mysql_query("SELECT ename FROM employee WHERE empno = '$session'") or die(mysql_error()); $nameResult = mysql_fetch_array($dbName); $name = $nameResult['ename']; $reqno = $_GET['id']; //echo $reqno; exit; $amtApproved = $_GET['amtApproved']; $query = mysql_query("SELECT * FROM requisition WHERE reqno = '$reqno'") or … | |
Hi Everyone, Starting to write **3D images** using** JOGL **and I can't seem to find any **recent information** and help about **JOGL** and creation. I noticed that most of the terms have changed and it doesn't work. Any **recommendations** on what I could read to help update me and keep … | |
Hello I have a problem with customizing my menu, I created a new mvc web application. Visual studio has created a default menu but I wanna add a background image like an image with "Home" or About instead of the default one. here is my code. <body> <div class="page"> <div … |
The End.