199,114 Archived Topics
Remove Filter ![]() | |
Hi all, I'm working on a maze project with different types of robots. One of the robots is supposed to be a right-hand-rule robot which follows his right hand. The way I'm coding it so far, is I have an Enum Orientation. If the right hand is facing UP, DOWN, … | |
Hi everyone, Can you please let me know why I am getting error on populating Persian(Arabic)Numbers?! I have saved the php file as "Uncode in UTF-8" format which can display the dropdown list in a HTML correctly but when I want to retrieve them in PHP I encountered with following … ![]() | |
hi i have made a program to find average and standard deviation. n it read input from other. rest of things are fine plz guide me my output for Standard deiation sD comes NaN. i have searched alot bt couldnot find solution my code is [CODE]import java.io.*; import java.util.*; public … | |
Okay, so I have two arrays: [CODE]public int[] start = new int[21] { 0, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14 }; public int[] end = new int[21] { 0, 1, 1, 1, 1, 1, 1, 2, … | |
Alright to star off let me say sorry for my english typos. This question is not for a homework and in no way related to school. Im in 3d conception. But looking to get a program for personal use. I have a project i want to work on and need … | |
Hey guys. I'm having some trouble with this error. [CODE] class App(): i = 0 def updateCount(self): i = i +1 app = App() app.updateCount() input('Enter') [/CODE] I have tried global i but get an error 'global name i is not defined'. Can someone clue me in? Cheers :D | |
I have this project that takes a team name, how many members are on a team and the individual times. I need to output the teamname and times (in seconds) and then the total time of each team. I'm having trouble adding the total team times. [CODE]while(infile.peek() !=EOF) { getline … | |
Using VB Express 2010 in windows XP Pro 64. A ListBox shows the project forms names. On ListBox_DoubleClick [CODE] For Each F As Form In xFormCollection If F.Name = ListBox.SelectedItem.ToString Then Try F.Show() Catch ex As Exception MsgBox(ex.Message) End Try End If Next [/CODE] Works fine the first time but … | |
I'm new to python and I'm trying to count punctuation in a string input by user, and I"ve been able to do it w/ out a loop, but would like to emply a more efficiant method. I've been able to loop through and grabb the characters, but they are'nt being … | |
I'm working on a school C++ program, and its my first that uses classes and objects. Its great fun, and I'm almost done. I have a problem with the search function, which involves several pieces of code- the .h files, the .cpp implementation file, and the main code file. If … | |
how can i scan a character from scannner class( just like int-nextInt,Boolean-nextBoolean) | |
i get this error every time i try to compile the code below. any suggestions --------------------------------------------------------------------------------------- Compiler: Default compiler Executing gcc.exe... gcc.exe "C:\Users\ndayala\Desktop\19266\main_random.c" -o "C:\Users\ndayala\Desktop\19266\main_random.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" C:\Users\ndayala\Desktop\19266\main_random.c:9:22: sys/mman.h: No such file or directory C:\Users\ndayala\Desktop\19266\main_random.c: In function `main': C:\Users\ndayala\Desktop\19266\main_random.c:30: error: `PROT_READ' undeclared (first use in this function) C:\Users\ndayala\Desktop\19266\main_random.c:30: error: (Each … | |
First in web form THere will appear one textbox and button. enter the number in textbox and press the button.Pressing button create Dynamically t number of dropdownlist as entered in textbox.I successful do it .But when i what use the seletedvalue of dropdownlist I cannot through anthor buttton . I … | |
Hi, Myself Vishwasdeep. I am doing a project work on asp.net. I am getting an error/exception on my code. [CODE] using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.Sql; using System.Data.SqlClient; namespace WebApplication2 … | |
Newb here. Parse error: syntax error, unexpected '{' in /home/litt6041/public_html/listing/wp-content/plugins/great-real-estate/templatefunctions.php on line 1502 Heres the code I have in that doccument. Sorry its so long. For some reason dreamweaver adds a bunch of spaces when viewing. Please help, Thanks! [CODE] <?php /* * public functions provided by the Great Real … | |
I have a program which consists of two windows (hWnd, and picturewind). I would like to write code which takes an action every time a person clicks inside of the second window (picturewind) but not when the person clicks in the first window (hWnd). Can anyone tell me how I … | |
hi , i am new to programming in java , i developed a program in java , my program is take two input files , first file has one sequence and second file has multiple sequences and then compute the edit distance between these two files . my problem is … | |
I got the Jasypt 1.8 and i have jasypt-1.8 folder but how can i add this new libraries to my project org.jasypt doesnt appear so what i need to do? | |
hi, i created the page that it contains captcha for submitting my form and insert it inside the data base but in the main page i putted my text fields later i created iframe which is displaying my captcha images with refresh button in the insert page i need to … | |
I'm trying to do the third writer/reader problem with semaphore (as mention on wiki). But it's not working properly. First 16-element array seem to work properly. But after first, it got wrong. Even though I think I'm almost there, I can't find the error at all. My code is as … | |
Hello, I'm a newbie working with vbnet but i'm trying to create a project were I enter a name in a textbox and save it to a access database. I'm trying to create the OledbConnection but i'm getting this error: "oleDbException was unhandled" this is the code i'm using: [CODE]Private … | |
alright well i have already posted in the python forum part, now this question is the same one as the one i did for college level computer science but this is for university. any way im pretty sure i have it but before when it was working it would say … | |
![]() | Hello, im trying to do a single html page with multiple checkboxes to hide/show text when checked/unchecked. I'm really bad at html but so far I have got this: The problem I have is I dont know how to add more checkboxes. Would appreciate some help. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD … ![]() |
Hello, I am taking a JavaScript class and I am currently on an assignment where my Professor wants me to create a dice roller program with the following stipulations: * Users can choose via form how many sides that they can choose from, between 2 and 100. * Dice are … | |
Hi all, I have a question regarding an extern variable. ---test.c [CODE]#include <stdio.h> #include </home/peuceul/debug/test.h> extern int a; int print1() { printf("value of a in extern is %d\n", a); int a = 2; printf("value of a is %d\n", a); } int print2() { printf("value of a in second method is … | |
Hi all, 2nd week programming and face first into the wall again haha. As always I appreciate any advice or critique. I have a small c++ program that reads through log files from a program and scans for errors. For the most part it works really well but I'm trying … | |
Hi all! The past couple times I posted they were all about 2D arrays.. and here I am again with them =( I cannot escape them! Anyway, the project I'm working on requires a Maze class that holds a 2D array and different types of robots that will find their … | |
[CODE] //Creating a variable for the connection called //"con" Connection con = DriverManager.getConnection("jdbc:mysql://IP_ADDRESS:3306/DATABASE_NAME", "USERNAME", "PASSWORD"); ... [/CODE] If I don't want at least the username and password to be shown in clear text... is there something I can do? Have them in a file thats encrypted or... I don't know.. … | |
Please repair my loop. [CODE]#include <iostream> using namespace std; int main(){ int size; cout << "How large a triangle do you want? "; cin >> size; for (int r = 0; r < size; r++) { for (int c = 1; c <= size; c++) { if (c <= r) … | |
Hi, I am using PHPBB for my forum. My intention is if someone registers to my website, he/she will be login to forum as well, automatically. That means no need to register twice to use the forum. Is there a way forward to achieve this? Will greatly appreciate your suggestions. … | |
I am implementing Selection sort in doubly - linked list. I have to sort list by surnames by finding smallest element and inserting it into beginning of the list But there are some troubles when I run my program I have NIL exception in Sort Method in while loop. Help … | |
[CODE]#include<stdio.h> #include<conio.h> struct node{ int data; struct node *next; }; struct node *creat_list(struct node *start); void display(struct node *start); struct node *addatbeg(struct node *start,int data); struct node *addatend(struct node *start,int data); int main(void) { struct node *start=NULL; int choice,data; while(1) { printf("1.creat linklist\n"); printf("2.display\n"); printf("3.add at beg\n"); printf("4.adda t end\n"); … | |
Hi, I have drawn a human face using simple shapes such as big circle for the face, little circles for the eyes, lines for eyebrows and triangle for the nose. I have been asked to create a template for various expressions of the face (fear, happiness, disgust, etc). Once I'm … | |
How do i write an export script in php from mysql data base Regards | |
Hi Everyone, It has been some time since I've posted here but I am truly having trouble seeing the forest for the trees so to speak. I have changed my code so many times I missed the time it worked because I want it to do more. Upon Exit btn … | |
Its all in the question really! My datagrids work fine! Using visual basic 2010 please help!!! | |
Hi there! I would like a little help regarding the following code. The following code will wait for a non-blocking socket connection, and then wait to receive a certain packet. When the packet arrives, it will do something and then close connection and reinitialize it in order to be able … | |
import java.util.*; import static java.lang.System.*; public class tester { public static void main(String args[]) { Scanner kbReader = new Scanner (in); System.out.print("Enter your integer here."); //enter 3001 int i = kbReader.nextInt( ); int count =0; for(int i = 100; i <= 999; i++) { int factors = 0 ; for … | |
Hey guys, hope I'm in the right section here, I presume Pygame falls under python. I'm trying to make a circle move left,right,up or down depending on the users input (e.g if the user presses the "a" key then the circle will move left by itself, rebound off the edge … | |
Hello I am trying to make a bot which will download files and upload on server. I have no idea how to do that (yet) can someone guide me which methods will be used in downloading file and uploading (ftp server) and one more thing is there any size limitation … | |
how to play from bytes (like sound) but without filename.... I read from InputStream by bytes, it must play... It is like sound streaming... | |
I'd like to add (using the mathematical term) two Integer ArrayLists in Java, as well as divide them and multiply. How would I go about this algorithmically? I can't for the life of me think of something, perhaps having to do with two's complements. Okay, so let's say that I … | |
[CODE]<?php include('connection/database.php'); require ('xajax/xajax_core/xajax.inc.php'); $xajax = new xajax(); function autocomplete($val) { if($val!="") { $query=mysql_query("select * from name where name like '".$val."%'"); $rows=mysql_num_rows($query); $out="<table width='100%' bgcolor='#bfbfc3'>"; while($data=mysql_fetch_array($query)) { $out.="<tr><td>".$data['name']."</td></tr>"; } $out.="</table>"; $objResponse=new xajaxResponse(); $objResponse->assign('div1','innerHTML',$out); $objResponse->script("jQuery:$('td').click(function(){ var a=$(this).attr('innerHTML'); $('#name').attr('value',a); $('#div1').attr('innerHTML',''); }); $('td').mouseover(function(){ $(this).css('background-color','gray'); }); $('td').mouseout(function(){ $(this).css('background-color',''); }); "); return $objResponse; } else … | |
Hi, Having some trouble getting it all together. I have a table in which i need to get Distinct names based on latest date. This is what the table looks like; Table Scores; [CODE] --------------------------------------------------------------------- | Name | Date | High Score | Medium Score | Low Score | --------------------------------------------------------------------- … | |
Hello, is possible in C# create a file with custom extension? and the file can be open only from progra and not from others text editors. I have a login form were i store logs in txt file for now, that i want is to create an file named *.lst … | |
Could ANYONE check on my code. As I compare the DSO with the DSO para, it seems doesn't compare both data at all. I have been converting the DSO as double first between comparing it as if i compare with string it doesn't work. anyone could help me please. I … | |
I need to access a file that isn't relative to the directory that the .jar file is in. I got lucky with another part of the program doing this, but I really don't know how. Thanks, Jack | |
Hello all, I got some problem in handling thread so my form is not hang when performing a long time computing, Here is my simple simulation of my program, first time my program start, it will make a form that contains a button that will perform a long time computing … | |
Alright I've been writing C/C++ code for a few years but recently got into helping make an indie game with a few guys. We are scripting in C# but i'm just a bit lost on how to do some stuff without pointers. Its a generic class that holds the non-work … | |
Hello there Good Day! Anybody can help me or teach me the code on how to lock the text box on my program. I have the navigation keys and add, edit, delete search command button. What i want is during the run time you cannot changed everything information in the … |
The End.