199,124 Archived Topics
Remove Filter ![]() | |
Hi guys, I'm new to programming and am trying to get better by writing "useful" things. Here is a very simple stock portfolio tracker that I started yesterday. It is not very complex and I feel like I'm not really improving my skills since it uses mostly beginner concepts, but … | |
I'm starting to experiment around with Java Web Start since applets have some limitations. I'm using Net Beans and it's working fine except that I get this pop-up when I run it: [quote] The application's digital signature cannot be verified. Do you want to run the application? [/quote] It would … | |
I'm having a problem with my countdown timer and am figuring that I'm missing something obvious. All I'm trying to do here is get my jLabel to countdown from 60 to 0. [code] ActionListener refreshListener = new ActionListener() { int counterLimit = 60; public void actionPerformed(ActionEvent e) { javax.swing.Timer refreshTimer … | |
So I am writing a voice activated recording program, and one of the things I would like it to do is plot the current and past volume level on a JPanel. Write now I am simply reading one byte from the audio buffer, converting it to an int, taking its … | |
I'm using python & i am trying to match ";" in a line: [CODE] for page in css: f = open(page, "r") lines = f.readlines() count = 1 obcount = 0 ebcount = 0 probwithfile = False for line in lines: [B]if not re.match("^{$", line) or not re.match("^}$", line): if … | |
I'm very confused. I'm suposed to expand this pointer-based list class in this program by setting ListItemType to int then adding methods to find the smallest number, the largest number, and the average of the list. Before I added the findLargest function the program would compile but, when ran, gave … | |
hello all. please am in a dilemma right now. am supposed to submit my project proposal in 2weeks time but as right now i dont even have a topic. please graet minds i need your help on suugestions about a topic that is VB related please. its very urgent.. | |
I am having a problem in implementing of sieve of eratosthenes.. please check the code and tell me the error [CODE] #include<iostream> #include<cstdio> using namespace std; int main() { int i,j; long array[100001]; int count=0; for(i=1;i<100001;i++) { array[i]=i; } for(i=2;i<100001;i++) { if(array[i]!=0) { cout<<""<<array[i]<<endl; int j=0; j=i*i; while(j<100001) { array[j]=0; … | |
Hi guys, Im pretty new to C# and I have a problem hoping that most of you could solve cause you are quite an experienced developers :) Here's my problem: I have a simple Windows Application Form with a dataGridView and a button. I want when the button is clicked … | |
how can i convert a string to password types like base64 or md5? | |
Hi, Im new to VB. Im just trying to do a simple if statement that will open a specific form based on user input. The database requires me to scan in a barcode from a card. I then want to check if that barcode number is already in the database. … | |
I want to get all the files from my local directory in my web page the same code works fine and it returns all the files when i run the code on the local system but when i'm trying to do that online it gives me error. the error is … | |
Hi experts, I'm extreme beginner in PHP.My problem is that,i've an html page and there's combobox on it,I want to load the form according to the selection of items. The html page is [code=html] <form action="search.php" method="post"> <select name="option" size="1"> <option value="1">value1</option> <option value="2">value2</option> <option value="3">value3</option> <option value="4">value4</option> </select> <input … | |
What is the purpose of view state,application and session and what is the difference among them?? i googled it but couldn't get exact idea .. i'm just a beginner.. help me plz | |
Hey guys, Can I tell istream to ignore ALL the characters until the delimiter char? It can be done with a loop but it's kinda weird I can't tell istream "discard until this char" imho, so maybe there's an hidden option somewhere. Thanks in advance! | |
well, I created an C#.NET application that close other applications that are consider to unwanted, so, my application list all the running processes and search for unwanted apps, my application uses Timers and Threads. So the problem ocurs when execute an batch file like this: [CODE] pause My_app.exe Exit [/CODE] … | |
am writting my class work project assignment but am stuck can some one help me out, am tring to pick data from patients table and diagnosistreatment tables which are mysql tables but the code is not working [code]<?php //This code retrieves a particulat patients record from dianosis and treatment table … | |
I am coding a program and have this function where i need to delete a record. The current code i have at the moment deletes a record but only deletes the top record but i need it to delete the record the user has selected. This is the current code: … | |
I want to make the clone site of [url]http://fishershippingcompany.com/home.php[/url] . is it possible in wordpress or I have to self code this all??? Please suggest me | |
Hi, I'm working on little phone book program with wxPython and SQLite. I can get database populated and can retrieve back the phones and names, but when I do fill them in ListCtrl it throws cruel errors :) Here is the retrieved data from database: [(1, u'Steve', u'Giddy', u'0654743553'), (2, … | |
I am confused by the use of an un-named namespace and its practical applications. The C++ Programming Language states that. [code] namespace { //Content } [/code] [b][COLOR="Green"]is equal to [/COLOR][/b] [code] namespace $$$ { //Content } using namespace $$$; [/code] Where $$$ is a unknown and random name. However I … | |
Hi, I'm looking for an open source c++ compiler to embed into an ide project I'm working on. I'm using Visual C++ express 2008 and would like to know what you's recommend as I have heard of gcc and MinGW but don't know what is best and EASIEST as they … | |
like isnull? Is there any way to check if like? select @myVariable isequal("hotta","kutel") If it is equal to "hotta" set it as "kutel" something like this? | |
Hi all, I am new to threads in c++, and I must use the pthread library. The documentation is easy to understand, but there is a more general aspect that I am missing. My question is: Is it possible to give a pointer to an object's function as argument to … | |
![]() | I have some code here: [CODE]import urllib import subprocess import time open_site=urllib.urlopen("http://www.freewebs.com/sravan953/command_python.html") read_site=open_site.read() site_list=[] for a in read_site: if a=='<': break elif a!='<': site_list.append(a) site_list.remove('\n') site_list.remove('\n') site_list.remove('\r') for a in site_list: site_string=''.join(site_list) def run_program(): current=time.asctime() print 'Runnning program'+' ['+current+']' subprocess.call(site_string) def check_argument(): current=time.asctime() if str=='': print 'No command given'+' ['+current+']' … |
Problem Statement: Writing and Reading student data in a file. Detailed Description: Write a program in which you have to: 1) Create a text file "Student_info". 2) Using Code Write the following data in it: Roll NO Student Name Class 101 Ali Raza BS(CS) 102 Usman MS(CS) 103 Faizan BS(CS) … | |
Hello everyone. I am new to C++ and, I guess trying to pool task that is to advanced. I have a MDI application written in PowerBuilder. One of the child windows in that application has MultiTab control with several tabs on it. What I’m trying to do is to add … | |
hey people i wud really really appreciate a hand here ohk dis is my task i have been given a bunch of urls to webpages containing blog posts i need to extract the authorname,date,content of blogpost and meta data and put it into a database. Here is wat i thought … | |
Hi I am using eclipse under ubuntu for my work. I am calling a function with specified arguments. It builds correctly but while debugging it stops at the call giving the error as "no source available for function()" [code] int f1(a1,a2){ //some description here } int main (){ //call f1 … | |
Hello! I am using BCB and I really need a help! I have to fetch the value from each row in a table and I know I have to add a loop,but when I read the buffer-it takes only the firs value in the firs row in the field and … | |
[ICODE]#include <iostream.h> main() { int n, k = 5; n = (100 % k ? k + 1 : k - 1); cout << "n = " << n << " k = " << k << endl; return 0; } [/ICODE] How the value of n become "4" ? … | |
Hi all , I have decided to use java applets and java servlets regarding creating a form.(because I don't know other langauages except java) guys the scenario is like this , visitors will enter to website, surfing it and then they will enter to feedback form , they have to … | |
Hello I will be joining Duke University (Durham, NC) as an applied math major with a research interest in applied neuroscience and Artificial Intelligence. So, should I buy a Macbook or a Macbook Pro for all the mathematical work that I will be doing? The work should include a lot … | |
Hi I am developing a login screen for my website, with usercode and password fields, and a Login button. I need to know how I can make the Login button automatically submit when the user hits the Enter key in either field (as apposed to the user clicking the Login … ![]() | |
Can Crystal Reports be used with MySQL? If not, what reporting tool do you recommend? | |
I just create a php page where user will enter their name in then the page will send them an email with a few word in the body message. Here is the code: [code] $fromEmail = "admin@domain.com"; $subject = "Welcome"; $body = "Hi,\n\nYou have visited the page."; if (mail($Email, $subject, … | |
I have a smtp server (no need auth) in the intranet so can i still can use the mail() function?? | |
I have no idea why, but the form mailer I'm using is not working correctly. Granted, I'm still a newb, but everything in the code looks fine to me. I'm using a modified version of the free form mailer available at [url]www.TheDemoSite.co.uk[/url] The exact problem is this: I fill out … | |
[CODE]string source; char *src = (char*)(source.c_str()); LPCWSTR lpszsrc = (LPCWSTR)src; Handle h= CreateFile(lpszsrc,.........); if(h==INVALID_HANDLE) printf("Error occured") return 0; [/CODE] [B]The above code segment always shows invalid file handle.I know the reason is my LPCWSTR conversion is not correct.How to make it correct.?[/B] | |
Length/Values1 what do i put there. this is a collumn in one of my tables its bigint so the number can get increased by alot. its a point system. it asks for length/values whn i edit the name of the column but i dont understand what to put there. i … | |
Hello, I am getting out of bound error whenever i run the program and trying to add a Node (this would be in my switch). but the error that i am getting is just above my switch statement. Can anyone help me to figure out what it is that i … | |
I know that it returns the remainder but what happens when say : x% y, where x,y is int and x<y. I see that results in x; For example, 3% 101232 = 3 and similarly 3%y, where y is greater than 3 yields 3. Why is that> Just wonder the … | |
hi, my clients have asked to do payment gateway using RBS worldpay.please do tell me how start the integration using php. thanks in advance. | |
Hi guys, I am making a memory game for my school project and i just have a few things that i would like to add to it to make it better. In my game, i have a 5x5 grid that has letters hidden by $ underneath. So when the user … | |
Hi all, I need some help creating a cart system. I’m currently using roman cart & MySQL which means I have to maintain two separate databases. The MySQL database holds the Product information and a Link to RomanCart. When the user clicks the “Add to Cart” info is added to … ![]() | |
I have no experience with javascript, so I would like to know if it is possible to align a paragraph of text so it is placed in the middle of any browser window, using only html and css. Can this be done without js? If not, how much javascript will … | |
Hi, i made a display()function that uses level-order traversal of the tree to display nodes level-by-level.I was told that I needed to put a queue class in my project. the hint was to put the queue in the root, do regular traversal but when we meet the marker, get() the … | |
[U]see the following code-[/U] [code] #include<stdio.h> #include<conio.h> struct emp { int age; char name[6]; }*e; void main() { printf("%u\n",&(e->age)); printf("%u\n",(&(e->age)+0)); printf("%u\n",(&(e->age)+1)); printf("%u\n",(&(e->age)+2)); printf("%u\n\n\n",(&(e->age)+3)); printf("%u\n",(&(e->name)+0)); printf("%u\n",(&(e->name)+1)); printf("%u\n",(&(e->name)+2)); printf("%u\n",(&(e->name)+3)); printf("%u\n",(&(e->name)+4)); printf("%u\n",(&(e->name)+5)); printf("%u\n\n\n",(&(e->name)+6)); printf("%u\n",((e->name)+0)); printf("%u\n",((e->name)+1)); printf("%u\n",((e->name)+2)); printf("%u\n",((e->name)+3)); printf("%u\n",((e->name)+4)); printf("%u\n",((e->name)+5)); printf("%u\n\n\n",((e->name)+6)); } [/code] OUTPUT------------------------------- 0 0 4 8 12 4 10 16 22 28 … | |
I finished making a basic web server a little while ago, however I cannot access it at all. I ran it on my mac, which didn't work. I then ran it on my PC and tried to access it from my mac using Firefox. This is the code I have … | |
Hello all! I have 3 different links on my main page (main.asp) - X,Y,Z. Link X opens x.asp , Y opens y.asp, Z opens z.asp When clicking on X, x.asp opens in a pop up. When I click again on X, the focus will come to the same pop up … |
The End.