199,114 Archived Topics
Remove Filter ![]() | |
Vega had nailed a "Starting Python" thread. I though there should be a place for proposing intermediate and advanced projects so that one can have something to do to improve their skills more. Especially for those who don't do alot of math enough to get the challenges of project eura … | |
![]() | Hi, Does anyone know how to add an [URL="http://ajaxload.info/"]ajax loader[/URL] to the [URL="http://jquery.bassistance.de/validate/demo/milk/"]remember the milk[/URL] validation example? So that while the backend is busy, it shows the gif, when it's finished, it hides the gif... Thanks, Ashton. |
hello I wrote this code using classes and it keeps giving me the error message : a nullreference exception was unhandeled/Object reference not set to an instance of an object. I am trying to add stock code and stock shares to the list of transactions using a currClient As Client … | |
So I have the code written, and it is compiling fine. But for some reason, when I compile it and it displays the results, the way it displays isn't the way it should be. It is supposed to pull information in from a binary file. Here is the link to … | |
the below code is to updata a database with calculated taxes and days late. It results in the message:[QUOTE]error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\invoice[/QUOTE]. Can someone help with this? [CODE]<?php $stat = mysql_connect("localhost","root",""); $stat = mysql_select_db("oodb"); $query = "SELECT invnum FROM oocust WHERE payrec = 'R' … | |
I found this function: I would like to use this for my program. [CODE] void gotoxy(int x, int y) { COORD coord; coord.X = x; coord.Y = y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); } [/CODE] First of all, is the "COORD coord" neccesary? :/ and "GetStdHandle(STD_OUTPUT_HANDLE), coord)" What's this part? What does it … | |
I have a project assignment for school... Basically its coming up with a Windows console C++ .EXE well i have spent a few hours developing a Geometry Calculator.. WOuld anyone be willing to test and report some bugs to me?? This is the project download link: https://sourceforge.net/projects/geocalcrobertdu/ People also wanted … | |
Im looking for some real c++ programming challenge...please post the most difficult you have encountered yourself....thanks in advance.... | |
Can anyone explain what the $PHP_SELF global variable does in the following script? <html> <body> <?php $db = mysql_connect("localhost", "root"); mysql_select_db("mydb",$db); $result = mysql_query("SELECT * FROM employees",$db); if ($myrow = mysql_fetch_array($result)) { do { printf("<a href=\"%s?id=%s\">%s %s</a><br>\n", $PHP_SELF, $myrow["id"], $myrow["first"], $myrow["last"]); } while ($myrow = mysql_fetch_array($result)); } else { echo … | |
I tried a lot to understand the code, but unable to get it. Help me with this code. [CODE]main(t,_,a) char *a; {return!0<t?t<3?main(-79,-13,a+main(-87,1-_, main(-86,0,a+1)+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a )&&t == 2 ?_<13 ?main ( 2, _+1, "%s %d %d\n" ):9:16:t<0?t<-72?main(_, t,"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+\ ,/+#n+,/#;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/\ +k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){n\ … | |
Hello, been trying to work out my code. but somehow it doesnt work at certain parts. can't use math.h by the way. [CODE]#include <stdio.h> #include <conio.h> int main(void) { int input,ans,i,total,j; int hex[16]={0},counter=0,hexadecimal1=0,hexadecimal2=0,hexadecimal3=0,hexadecimal4=0; char value,value2,value3,value4; char hexadecimal[17]={0,0,0,0,0,0,0,0,0,0,'A','B','C','D','E','F'}; printf("enter value:"); scanf("%d",&input); while(input>0){ i=1; ans=input%10000; input/=10000; while(ans>0){ total=ans%10; ans=ans/=10; j=total*i; i=i*2; hex[counter]=hex[counter]+j; … | |
Having problem make last if an statement work in the code. the variables in the if statment are doubles but the ide keep telling i need a proceeding if statement. but is already there it is in the last if statement of the code [CODE]Public Class Form1 Dim Totals As … | |
so I'm using the 'initialfile' to automatically generate the name of the import file, but I'm using 'defaultextension' to set the extension when clicking 'Save' how do I set the 'defaultextension' based on the current filter selection?? | |
I have some image, in my page, code: [CODE]<img src="/path/to/the/upload/folder/<?php echo $filename; ?>"/>[/CODE] Can you help me display it as link, ex: [CODE]<img src="http://imagelink.jpg"/>[/CODE] if you have free time, teach me how to display multi image with code above. Thank you so much | |
Hi everyone, I need to find the Latitude and Longitude values for a moving vehicle from the Google Maps, using javascripts. Can you give the sample code, please help me. | |
The program is compiling and I'm not getting any errors, but when I run the program, after I enter the first value, the program just terminates. [CODE]//carstruct.cpp -- Structure with information about cars #include <iostream> using namespace std; struct car {char make[20]; int year;}; int main() { int cars; cout … | |
script to specify the name of the user to be checked, the frequency in seconds at which the script should check. If a checking frequency is not specified, it should default to 60 seconds So far I have got [CODE] frequency=$0 user=$1 #!/bin/sh while [ $* -gt 60 ] do … | |
How can I turn on debug for fucntion sendSMTP ?? What is the function for var $debug ??? [CODE] #!/usr/bin/perl -w use Socket; use strict; my($mailTo) = 'chuikingman@yahoo.com.hk'; my($mailServer) = 'mail.hgcbroadband.com'; my($mailFrom) = 'medined@mtolive.com'; my($realName) = "chuikingman"; my($subject) = 'Test send_mail'; my($body) = "Test Line One.\nTest Line Two.\n"; $main::SIG{'INT'} = … | |
Okay, so I'm currently working my way through Beginning Python: From Novice to Professional, and I'm up to the networking stuff. I consider myself at least an intermediate Python programmer, but the network stuff is really confusing me. I'm trying to get the hang of it by writing a simple … | |
hello i use eclipse when i add action listener for button it marks as redline iam using swing component what is the problem ?what is the actual problem in that | |
Hi every1, I have a recursive function for building dynamic menu, and it gives me this error: "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261900 bytes)" Any ideas? | |
I'm trying to load a CSV file into a database table, but having some issues. [CODE] LOAD DATA LOCAL INFILE 'Report_1.csv' INTO TABLE report_1 Fields terminated by ',' ENCLOSED BY '\"' LINES terminated by '\n\r'( company,key_code,dlr_code,rep_code,dlr_name,first_name,last_name) [/CODE] This gives me the following error: [ICODE] File 'Report_1.csv' not found (Errcode: 2) … | |
I am trying to create a program that, after inputing a text file, can: 1) Count number of lines in the text file. 2) Count number of words in the file. 3) Count number of characters in the file [B][U]including[/U][/B] white spaces. 4) Count number of characters in the file … | |
My program is due today and I'm stuck at work trying to figure this out I have been using the web to get this done. Instructions: Write a program that adds the positive odd numbers you enter from the keyboard while ignoring the even numbers, and stops when a negative … | |
Is there any alternative to return 0.? [B]*void main() should not b use as an alternative.[/B] | |
Hello; Could you please help me figure out why this form of mine does not show all the DIVs when I choose all the checkboxes of the Page Kind. [ICODE] <%@ Page Language="VB" MasterPageFile="~/_templates/MasterPage-ContentNormal.master" autoeventwireup="false" inherits="SierraClub.PublicSite.BasePage" title="Add This" %> <asp:content id="content1" contentplaceholderid="maincontent" runat="Server"> <style type="text/css"> body{ font-family:"Lucida Grande", "Lucida Sans … | |
Hello world ! I am beginner in openGL and really facing difficulties while learning it. I have a question and getting confused about the usage of GL_PROJECTIOn and GL_MODELVIEW and also about glLoadIdentity(). I am struggling, this concept has consumed several hours of mine. So from World, anyone who can … | |
When Using DOM can the text in [ICODE]<linkDesc>[url]www.deleteme.com[/url] desc</linkDesc>[/ICODE]be replaced or will the link element need to be Removed and replaced? [CODE]<?xml version="1.0" encoding="utf-8"?><links> <links> <link action="save"> <linkName>www.deleteme.com name</linkName> <linkPath>www.deleteme.com</linkPath> <linkDesc>www.deleteme.com desc</linkDesc> </link> </links>[/CODE] thanks | |
Is there any way i can pause a file download in my vb program?? I have tried both the http method and the my.computer.net method with no luck. I have also tried pausing the background worker by this method:[URL="http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/407a38ec-b012-4628-9627-c0aa3cd87a42/"]http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/407a38ec-b012-4628-9627-c0aa3cd87a42/[/URL] But even if the bgworker is paused the download goes on..... … | |
Using the stdl::vector class you can use two sorts of iteration over the vector: the .begin and .end way GlifPtrVec_t::iterator Iter ; for (Iter = m_Array.begin() ; Iter != m_Array.end() ; Iter++) { CGlif* pGlif = *Iter ; delete pGlif ; } or one I am more used to: for … | |
i didn't understand from the question if the user needs to enter data or not can some one verify it with me tried to follow the instructions, and thats my code [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace BookExceptionDemoGUI { … | |
Hi, I'm a bit new to SQL and this is my question... Do I need to filter user input that has no connection with SQL database, e.g. $x=$_GET['pageno']; if ($x == 'help4') { print "This is help page no4."; <some mysql queries goes here> } ![]() | |
hello I developed a chatting application with GUI. when the TextArea is full and if any new text is added, the JScrollBar will not scroll down automatically. I struggled a lot to make it scroll automaticaly but ended with dashing hopes how to make the JScollBar to scroll down automatically. … | |
Hello, I have a few questions about Assembly. I am extremely new to it! Question 1: How do you write functions in assembly? Is it even possible? Question 2: How do you get an input to a dd variable type (do I have to do the math on four db … | |
I am trying to change the background color of the JPanel every 3 seconds (3000 ms) when I click START button till I press STOP button. [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.Random; class TimerBackground implements ActionListener { JFrame frame; JPanel panel; JButton btnStart; JButton btnRed; JButton btnGreen; … | |
I'm need to set up teams based on how many wins the team has inside this text file : [code] UNCC 30 NCSU 28 GT 25 USC 20 GSU 19 UVA 15 UGA 2 UNC 1 [/code] For example the output of the program should be: [code] UNCC VS UNC … | |
Morning, and greeting to all~ I'm building a [B]registeration form[/B] for a forum i got 3 input : [B]User Name, password, and email[/B] In this case i use [B]ajax[/B] to do the [B]duplicate validation check[/B] once the registering user entered a name or email that has been took by other … | |
i need to do the second part of the assignment and i cant solve it, i need to do it gui, this is what i have so far [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace EmployeeExceptionDemo { public partial class … | |
for (count=1; count<=10; count++) { number1= randomNumber.nextInt(10)+1; number2= randomNumber.nextInt(10)+1; Help correct= new Help(number1, number2); switch(choice) case 2: if (number1 > number2) { System.out.print("What is the answer to this problem? " + number1 + "-" + number2 + ":"); ans= keyboard.nextInt();//stops at 2 problems!!!!!! a= correct.getSub(); if(ans == a) { System.out.println("The … | |
i am having a problem to write the code for a project that i have i need to get the label to the picture attached to count how many oval and rectangle are in the picture i have the code for the rest i just cant figure how to arrange … | |
I compiled this program with no error, but when I run it give me some kind of problem where I have: idNumber = inFile.nextInt(); //student ID number. Appreciate any help. Thanks [CODE] /* *Description: Writing own method, Switch Selection Control, String,Accumulating, *Counting method, array base on last reviews from previous … | |
Hi i have two values of type dateTime [CODE]DateTime dateOfEvent = Convert.ToDateTime(dtpReservationDate.Value.ToLongDateString()); DateTime timeOfEvent = Convert.ToDateTime(dtpEventTime.Value.ToLongTimeString());[/CODE] now i would like to assign these date and time to one variable of datatype dateTime. How can i do so? [COLOR="Red"]DateTime dateTimeOfEvent = ??????[/COLOR] | |
In mysql, the table consist of informationtype, status and informationno , [CODE] $information = mysql_query("SELECT * FROM table WHERE informationtype='message' AND status='waiting'"); $row = mysql_fetch_assoc($information); $result=($row['informationno']); [/CODE] The query result are 4 rows. The informationno are 11001; 11002; 11007; 11009; If I intend to express the results in term of … | |
This script adds a backslash to content added to description when saved. single quote becomes ' while double quote becomes \" I want to remove the backslash. i have tried stripslashes but still couldn't get it to work. <?php defined('_JEXEC') or die('Restricted access'); $newjob = $this->newjob; $editor = & JFactory … | |
I've seen some programs made with ncurses, and I think it would be really cool to use it in my project for school. Problem is, I have no idea how it works and can't seem to find much, if even anything, about it. Can someone maybe help me a bit? … | |
Hi, I don't get why my funcion finds the string even if it doesn't exist in textfile: [CODE] function name_exists($name) { $f = fopen($this->path, "r"); //echo $this->path; while ( $line = fgets($f) ) { if(strcmp($line,$name == 0)) { echo 'exists'; fclose($f); return TRUE; //we found it and can stop the … | |
I would like to have a picture covered up with another image then I would set a countdown and the top image would be slowly disappearing, pixel by pixel till the bottom image is fully visible, any ideas? I did try a few scripts related to: imagesetpixel imagelayereffect imagealphablending but … | |
[CODE]<html> <head> <h1>Welcome</h1> <h2>back</h2> <form action='get.php' method='GET'> Name: <input type='text' name='fname' /><br> Age: <input type='text' name='age' /> <input type='submit' value ='clik here' /> </form> </head> </html> <?php $fname = $_GET['fname']; $age = $_GET['age']; if ($fname && $age) echo "your name is. $fname , and your age $age <br>"; echo date … | |
Hi there. I have a problem: I want send every image to every div and display. My code: all.php [CODE]<? $files = glob("output/*.*"); for ($i=1; $i<count($files); $i++) { $num = $files[$i]; print $num."<br>"; echo '<img src="'.$num.'" alt="random image" />'."<br><br>"; } ?>[/CODE] index.php [CODE]<img src="all.php" alt="image">[/CODE] So, I don't know how … | |
I have an XML page with the XSLT embedded in the file. I cannot have an external file for the XSLT in this application. Additionally I must reference the stylesheet in a way that the XML file's name can change. I can do this with... [CODE]<?xml-stylesheet type="text/xsl" href="#mySheet"?>[/CODE] ...where... [CODE]<xsl:template … ![]() |
The End.