199,114 Archived Topics
Remove Filter ![]() | |
Hi everyone. I am currently doing small exercises on classes. Suppose you have 2 classes: Person (superclass) and Student (subclass) the class Student is extending the class Person. When creating new objects of type Student, when do use the following options: option 1: student x= new student( ..); option 2;( … | |
hi all... pls help me to fix this.. google webmaster tools showing some of the links as '404' crawl errors in my wordpress site.... and its increasing day by day... actually there is no such links or files are present in the site... here is the example for crawl errors... … | |
The problem with my code is that the update method doesn't get invoked even after I notify the observers. Did I miss something in my code? package com.observer3; import java.awt.FlowLayout; import java.util.Observable; import java.util.Observer; import javax.swing.JLabel; import javax.swing.JPanel; public class A extends JPanel implements Observer{ JLabel lbl; public A(){ setLayout(new … | |
Hi all friends, As per the below mentioned code, the given No of votes should calculate in percentage and entry per field should not exceed from 100%. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript"> function test(vote) { … | |
I have 'bit' datatype in db. I convert its equivalent datatype to 'bool' in c# when i declare. protected bool e_Status; And when I set the property for the above, public bool Status { get { return e_Status; } set { e_Status = value; } } Now how do I … | |
i am doing a windows application program and these are the code inside System.Diagnostics.Process.Start("ConsoleApplication1.exe"); Thread.Sleep(500); System.Diagnostics.Process.Start("ConsoleApplication2.exe"); Thread.Sleep(500); System.Diagnostics.Process.Start("ConsoleApplication3.exe"); as if one of the console application program face error it will show in the cmd, so how would i going to capture those error in cmd and show in the message … | |
Can anyone please explain to me how to compute DCT? I'm finding it hard to understand it.   I attached the formulas the Discrete Cosine Transform (DCT) and it's Inverse-DCT. | |
Hi folks, I'm creating a new theme meant for wordpress using twiitter bootstrap. I created a new portfolio page that has 4 cols. While displaying the images for the portfolio, all the images are floated to left properly in Chrome, Safari, Opera but not in IE9 and FF v16. Here … | |
Hey guys, can anyone tell me how I could use randomaccessfile to read in a txt file and copy the content to a tree? Also how to then do the opposite and write newly changed nodes from the tree onto the text file? It's pretty much like creating a save … | |
Hello all, I'm performing the oracle bulk copy upload operation. There are 10 columns data which needs to be uploaded in oracle database table. The data is getting uploaded in the table for these 10 columns using a datatable. A datatable is being populated from the list. However, there are … ![]() | |
<%@ Page Title="" Language="C#" MasterPageFile="~/MyMaster.Master" AutoEventWireup="true" CodeBehind="UserRegistration.aspx.cs" Inherits="MyProject.UserRegistration" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div id="content"> <!-- Begin Slider --> <div id="slider"> <div class="slider-frame"> </div> <ul class="slider-items"> <li><img src="Styles/css/images/slide1.jpg" alt="Slide 1" /></li> <li><img src="Styles/css/images/slide1.jpg" alt="Slide 1" /></li> <li><img src="Styles/css/images/slide1.jpg" alt="Slide 1" /></li> <li><img src="Styles/css/images/slide1.jpg" alt="Slide 1" /></li> <li><img src="Styles/css/images/slide1.jpg" alt="Slide 1" /></li> … ![]() | |
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim cmd As New OleDb.OleDbCommand If Not cnn.State = ConnectionState.Open Then 'open connection if it is not yet open cnn.Open() End If cmd.Connection = cnn 'check whether add new or update If MsgBox("Do you want save?", vbInformation + … | |
Hello all, I have a dialog window with a jqgrid. Wihin the jqgrid I have. multiple dropdows, one for each of the 50 states. And each state takes a different row. Depending on what is going on from output in a database each one of those states is to have … | |
Hi, i'm trying to use an `AffineTransform` to transform a point to pixels on a 400x400 canvas. What kind of transform would you use? For example: given the points (-1, 1) --transform--> (0, 0) (pixels) (1, 1) --transform--> (400, 0) (pixels) (-1, -1) --transform--> (0, 400) (pixels) (1, -1) --transform--> … | |
First we had the news that [URL="http://www.daniweb.com/news/story276878.html"]IBM was helping clean up crime[/URL] in the US and UK, now it seems that Sweden is getting a touch of the Big Blue Brother effect. The city of Stockholm is launching a project using IBM's streaming analytics technology in order to gather real-time … ![]() | |
I have problem updating my MySQL database. The user can edit a form in my page and once they press 'send', the php script should be able to update all the information. However the database doesn't seem to be updated after pressing the 'send' button in the form but only … | |
Anybody out there that used Python on an Android system? Something like the subset on http://pygame.renpy.org/ | |
Hi, I'm trying to redirect the admin user from my login.aspx page to the admin.aspx page and any other domain user to the default.aspx page. I have no problems getting the domain users redirecting or having a message displayed when the credentials are incorrect, however when I enter the admin … | |
Group, I have 36 string names that I'd like to create. In general these string names can be very similar. I thought I'd try creating a loop to do this for me. But I can seem to find the correct syntax to do this. To clarify, these string names can … | |
Does anyone know a good method of generating bar/pie/line graphs in ASP ? I cannot use any commercial third party tool. Also I can't use any OCX or flash components. My data is in Oracle which I am connecting using ADO. The graphs have to be generated dynamically from the … | |
Problem in loading Dialogbox Infront of a form in vb.net | |
Hi folks, I have a normalized database which is based on a learning environment. I would like to be able to search for a selection of keywords which are in a table called 'C_Search' and use them to pull up the course details which stored in 'C_Info'. I have a … | |
I'm using WebIM for chat support on a website. I would like to be able to setup a timer for when a client initiates a chat session, if an operator/tech does not respond within 'x' seconds I would like the page to redirect to another page where the client can … | |
Hi Guys, I am kind of new to python and started working on python from February2013. I have a script which run on linux machine. It captures the available RAM from the system and then tries to eat it up. I am using subprocess.Popen('free',...) command and for first loop it … | |
Just wondering if anyone knows how to not save a document after creation when using Microsoft.Office.Interop.Word. Basically i am using mail merge to print off a report from c#, the document get made, values are passed to it no problem and i can then print it without any issues, however, … | |
An error was encountered while opening associated documents the last time this solution was loaded. Document load is being skipped during this solution load in order to avoid that error. How can I resolved this error in VB 2010? | |
good day, I'm some time researching how to organize TabPages the TabControl, but so far there is no example of how to get leaves them in order. I found this code here but still the TabPages are not in order, someone could help. Sorry the English. http://www.dotnetspider.com/resources/18344-Hiding-Showing-Tabpages-Tabcontrol.aspx[^] TabPages adds this … | |
Hi, started programming 2 days ago, and i'm having a problem with Java saying one of my variables isn't initialised. Couls someone help please?! Thanks, code below: public static void adding() { int n = getN(); int total; for (int i=1; i<=n; i++) { total = i + 1; } … | |
So, quick question, (has to be just something I'm missing), if I want to concantate a string and integers in a url, is there a way to do so? I'm sure there is...I mean this IS python! from urllib2 import urlopen width = input("Please enter a width specification here: ") … | |
Hi guys, I have been racking my brain for a while now trying to sort out a problem I have been having with my mysql query and thought this would be the best place to get some help and learn how to edit my query! So, users are able to … | |
I'm getting a T_String error in this code: <?php //DB Config define('DB_USER', 'IM HIDING IT'); define('DB_PASS', 'noooo'); define('DB_NAME', 'lol); define('DB_HOST', 'localhost'); $odb = new PDO('mysql: host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS); //General Config $sn = 'Free Source'; $url = 'http://localhost/cupcake/'; //Use that format or CSS will be … | |
Roots of quadratic equcation #include<iostream.h> #include<conio.h> #include<math.h> void main() { float a,b,c,disc,root1,root2; cout<<"enter a"<<endl; cin>>a; cout<<"enter b"<<endl; cin>>b; cout<<"enter c"<<endl; cin>>c; disc=(b*b)-(4*a*c); root1=(-b+sqrt(disc))/(2*a); root2=(-b-sqrt(disc))/(2*a); cout<<"root1"<<root1<<endl; cout<<"root2"<<root2<<endl; getch(); } any question or assignment ask to me!guys | |
I am trying to read a structure from a .dat file...the first integer to be read is the no of readings, then there is the data in following structure format struct Oven { int rec_no; int temp; int status; char string[10]; }; below is the method through which I read … | |
I have less than a day to understand and learn evrything there is to know about arrays and to be able to know what the output for a code on arrays will give.. I was hoping someone will be able to suggest any good sites etc.. from which i can … | |
Hello, I am taking my second Java course this semester CSC-251 (advanced Java). I took introduction to computer programming last summer. With three programming courses under my belt will I be able to find a job out there in the real world? For a little background information about myself. I … | |
I am trying to make a compiler for my project using C but I have a problem on how to store the contents of the text file into an array or something similar so that my program can compiler or analyze my txt (code) file. Here is what I have … | |
Was not sure where to post this, but let this a go. I m on my final year. And I have discovered in myself a passion for programming in C and started learning it but it is all in a beginning stage. I really bored of Java or I just … | |
Hi all, I am using an apache web server, and this is the raw url: `http://localhost/mysite/index.php?view=contact` how do I convert that to: `http://localhost/mysite/contact/` My current .htaccess is saved in `http://localhost/.htaccess`, and reads as: RewriteEngine On RewriteRule ^mysite/(.*)/$ /mbs/index.php?view=$1 [L] and I get a 500 internal server error? Thanks for the … ![]() | |
Alright so my problem is I am getting an error that says undefined reference to all of my functions related to DoubleLinked, DoubleLinked<string> dict, dict.add, etc. If anyone knows why that would be great. Thank you. Oh and if i add () to DoubleLinked<string> dict then i just have undefined … | |
hello forums. i have small problem im creating a simple page (no php ) just javascript and html. i have order.html which has a list of items. and then when you click the drop down menu it will automatically display the price of the item depending on the quantity on … ![]() | |
So I'm writing a personal bank tracker for myself, and I'm having a bit of trouble with a line of code. The ID_Pin method below is equal to 0000, however when i try to create an instance (any instance of the Account class), it returns the "Access Denied" bit that … | |
Hello, i installed MS SQL Server 2008 0n a stand alone/member server runing windows server 2003 R2. I connencted it as a member server to a Domain Controller(child1.parent.local) in another site. This worked very fine both the replications were succecssful. The domain controller which i connected to, is a child … | |
How can I insert two row to supplier table? CREATE TABLE supplier ( supplier_nr NUMBER(10), supplier_id VARCHAR2(20) NOT NULL, price NUMBER(10) NOT NULL, CONSTRAINT supplier_supplier_nr_pk PRIMARY KEY(supplier_nr), CONSTRAINT supplier_supplier_id_fk FOREIGEN KEY(supplier_id) REFERENCES varugrupp(supplier_id) ); | |
aving serious problems with headers and session variables. Read related posts but none helped me. I'm using sessions to store some info about the user logged in e.g. name, user_id, etc. To start with, let's say `$_SESSION['user_id']=6;`. Then let's sat I want to view someone's profile. There is a dropdown … | |
Hello Guys Help Me To Count The Item in Listview and Update it. Scenario.. Customer Buy 3 Milk and 2 Nescafe then the Cashier Punch it Item-----------------Qty Milk-------------------2 Nescafe---------------2 The Cashier Forget to Punch the 1 Milk. the Cashier should Punch Another One Milk..But My Code This is What Happen … | |
I'm having a problem with a MYSQL Join accross three tables. I'm new to MYSQL Join functions, and can't quite figure out how to write the code. My current code is horribly innefficient and does not implement explicit joins, which I believe is much of the problem. Here it is(in … | |
Hey there, I had to place an include statement inside a div and style the div with negative top margin in order to remove some unwanted white space mysteriously created between the include statement and the image right before it. Why'd I have to do that? Is that normal practice … | |
CODE: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con = New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Danial\documents\visual studio 2010\Projects\ESI_PF_Payroll_V1\ESI_PF_Payroll_V1\Pay.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True") Dim adaptor As New SqlDataAdapter Dim dataset As New DataSet con.Open() con.Close() con.Open() cmd = New SqlCommand(str, con) cmd.Connection = con cmd.CommandText = "SELECT Firstname FROM … | |
i need to make the Print JMenuItem to open a printdialog box when clicked but i dont know how to make it can u help me pls p.addActionListener(new ActionListener() heres the code can u add the printdialogbox i searched but i cant put it on the program import javax.swing.*; import … | |
how can i detect only a face from an image...i want to tak an image fron a user..nd display only the face part..how can use ajax for the same ... |
The End.