199,114 Archived Topics
Remove Filter ![]() | |
i just finished upgrading my php to php5 because i wanted to see the changes, but now my code doesnt do anything at all. like the one to connect to a database. it just gives me a blank white screen so when i went to check phpmyadmin to see if … | |
Hello, I have a program assignment that is supposed to that converts decimal numbers to binary, hexadecimal, and BCD. I am having an issue with keep the leading zeros on the binary. I have used a recursive function to output a binary conversion. [CODE]#include <iostream> #include <iomanip> using namespace std; … | |
Is it possible to write to the windows dos screen and display the results in a GUI? eg; [CODE] Console.WriteLine("ipconfig"); Thread.Sleep(1000); for (int i = 0; i < 5; i++) { textBox1.Text = Console.ReadLine().ToString(); } [/CODE] | |
Recently I have been writing my own Python editor for fun. I have came pretty far but now I have some issues. My editor object is in my notebook but wont go to the bottom of my window. I can get it to expand across the screen but not down. … | |
Hi! Guys, My name is Tonie and i just joined Daniweb recently. I have a question that is puzzling me that i wanted to get input from other programmers. The questions is below. I have a friend who wants to have a party, lets call her Kim. She wants to … | |
Can somebody help on how to extract all the files with the index in the ALCHEMY version 4.1 of IMR. I'm trying locate the files stored in it but it seems like it is compressed in a .DAT file. Another thing: Is there a way for us to extract files … | |
![]() | Hi all this is my code :- [CODE]import pygame from pygame.locals import * from sys import exit from random import * pygame.init() screen = pygame.display.set_mode((640, 480), 0, 32) while True: for event in pygame.event.get(): if event.type == QUIT: exit() screen.lock() for count in range(10): random_color = (randint(0,255), randint(0,255), randint(0,255)) random_pos … |
Hi guys, i have a problem here i have a situation where i need to save all the images opened using PIL I have no idea how to do without displaying images on screen one by one and saving them Can anyone please help how to save them without switching … | |
Hi all, I am looking into buolding a website that would be able to give hotel availaibity + rates over the internet. I am not looking at taking booking from my website. What I am after is building a database that would hold availability for 5 different hotels The DB … | |
the question is this. suppose that i have got rowstart=8 rowend=6 columnstart=8 columnend=8 b=0 [CODE] while(pieces[rowStart-b][columnStart]==null && pieces[rowStart-b][columnStart]!=pieces[rowEnd][columnEnd] && pieces[rowEnd][columnEnd]==null){ // CHECKS THE UPPER ROW. b++; }[/CODE] | |
I have a promblem with following case : i have a properties.txt that included: 10 Napier St. Palm Cove 350000 47 Darkien Cl. Smithfield Heights 265000 i want to write: On start-up, the program is to prompt the user for the property listings filename (the sample file provided is called … | |
Hi, I want to fill an array with enum Values but using integers in a loop. My set method accepts Enum types and not integers. But when I work with the enums I can use 0,1,2,3 etc. I am trying to fill a deck of cards using some loops. Is … | |
Okay My trial is running out on my VS2010 Pro in 22 days. I started shopping around and was in shock at the price of this software! It looks like the best I can do on VS 2010 w/MSDN (can't find one without) is $724. OUCH! I started looking more … | |
Hi experts, I'm total newbie with C# and I ran into challenge that must be simple to solve. I have defined several 2-dimensional arrays, named like Par1001, Par1002, Par1003 and so on. And now the challenge, how can I use a string variable to replace the 'Case' structure with function? … | |
Hello guys I'm new to writing java but have some experience with other languages. I use Eclipse as my IDE but when i try to run a simple console program (exported to .jar using Eclipse) i am only able to run it from the command prompt. An example of a … | |
Hello, I have a problem with compiling my code... Platform: [b]Ubuntu Linux 10.04[/b] Compiler: [b]gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3[/b] IDE: [b]Netbeans 6.9.1[/b] My C program is required to exclusively deal with Unicode. I can use these functions just fine: [b][COLOR="Green"]wcscpy(), wcslen(), mbstowcs(), wcstombs(), snprintf()[/COLOR][/b] The problem seems to only be when … | |
I have a form that I use for people to contact me on my website. I have been using server-side php form validation which has been working as it should. I decided to implement java script client-side validation using the jquery validation plug in. Ever since I added the client-side … | |
I have implemented a catch statement for both the InputMismatchException and the ArithmeticException, how come they are not working? Also, if the user enters "quit" for the numerator, the program should be able to exit. But my understanding is that as soon as the user enters something that is not … | |
Hi All Can anyone recommend good CF reference guide for quick access when you are mobile and dont have internet access. | |
Hi everyone. I'm a bit of a noob at C++, I took the first level of this class 2 years ago and I'm tying to remember everything. I'm having a problem with a program I'm trying to write. I need to average the grades of each student and then print … | |
I'm learning perl, been reading some pdfs and such which doesnt really help sink the info. So i decided to do what I did to help me with python, build something of a poker game. The cards are successfully dealt, now im working on splitting up the card terms to … | |
I am required to generate "n" random numbers of which each random number ranges from -10,000,000 to 10,000,000. I tried using rand() and changing the range, but it only has a max range of 32,000 or so. What is a good function or algorithm that I could use to achieve … | |
Hi. I'm relatively new to VB and I have a question that needs an immediate response.Can anybody help me with this.... Suppose a sequential file contains the information shown below. I need help to write a program to use the file and produce a new list where the teams are … | |
Hello all, I'm very beginner in x86 assembly language, I saw that there are many assemblers avaliable, but which one to start with, regarding that I want to program in 32-bit pmode but without using any external APIs (e.g: Win32 as in MASM)... Thanks... | |
Hi everyone, i'm having a hard time achieving this: i have a table inside a form, with input fields ( price, qty, desc, total ( to be updated ), this works as it should with the following javascript: [CODE]<script type="text/javascript"><!-- function updatesum() { document.forms['hours'].elements['onktotal[]'].value = (document.forms['hours'].elements['onkqty[]'].value.replace(",", ".") -0) * (document.forms['hours'].elements['onkprice[]'].value.replace(",", … | |
Sorry for the duplicate post... I just posted an AJAX forms generator that will read a MYSQL table, allow you to define how the fields are treated and then generate the necessary HTML, Javascript and PHP files to implement the form. You end up with a complete and working form … | |
I was wondering if there was any way to use Javascript (or any language) to select text located in a div for the user, and I dont mean "highlight", as in, change the background color, I mean to select the text for use in copying and pasting. ...I havnt come … | |
I'm taking a Java Class and this is the assignment: "..Modify your withdraw method so that it that checks the customers balance against a potential withdrawal. If the amounted requested for withdrawal exceeds the balance, deny the attempt to withdraw money and let the customer know." I have the if … | |
I am placing xml into a table in html and trying to sort based on a parameter, but my parameter's value is not being used. It uses the string "$sortkey" instead. Here is an xsl excerpt: [code] <xsl:for-each select="catalog/cd"> <xsl:param name ="sortkey" select="country"></xsl:param> <xsl:sort select="$sortkey"/> <tr> <td> <xsl:value-of select="title"/> </td> … | |
I'm having a problem with my code. I am doing [URL="http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=951"]Where's Waldorf[/URL] on the UVA site. I understand how I want to tackle this project, but am unable to get past a seg fault. My strategy is to pass the multi-dimensional char array of the search board to a function … | |
So I need to convert a hex string on my server which could contain any byte number from 0-255 into a byte to send it to my client. This works fine in most situations, but when converting to a byte with any hex between the range of 0x80 and 0x9F … | |
What do I need to do to make rules for user input? Say I want the user to choose a number 1-5. If they pick one, I want to go to the next step. If they don't I want to tell them that they have to pick a number between … | |
I have a form that I use for people to contact me on my website. I have been using server-side php form validation which has been working as it should. I decided to implement java script client-side validation using the jquery validation plug in. Ever since I added the client-side … | |
Hello, I have written this code, deleting those parts which are no needed to reproduce the error: [CODE]#! /usr/bin/env python # TestDialogs.py import wx, MySQLdb, wx.lib.intctrl, wx.grid ID_SPECIES=1 class SearchDlg(wx.Dialog): def __init__(self): wx.Dialog.__init__(self, None, -1, 'Search species', size=(400,400)) panel = wx.Panel(self, -1) vbox = wx.BoxSizer(wx.VERTICAL) hbox1 = wx.BoxSizer(wx.HORIZONTAL) hbox2 = … | |
[B] hi all, i am trying to open a file with application using java. i faced many problems while processing it. 1. Using Runtime.getruntime.exec(); i faced the problem. i can open a file with application in the local system(server) where i have written the program. while by using the ip … | |
Good evening, I am trying to simply open a folder located on my local C:\ drive, to be exact just for testing purposes I am trying to open C:\temp folder. What I have is a JFrame with a single Jbutton and some code, however when I execute the button, nothing … | |
Hello! I have designed a dialog that shows a wx.Grid with some data (full code at the end). Then, there is a search area. The other buttons are not working now. When you fill any search control with some data shown on the grid, it prints the index where the … | |
[CODE]please help me in doing my project in one of my subject in college. it is all about getting the GCD of fractions... can anyone tell me the logic or the formula for getting it? tnxx in advance[/CODE] | |
I need a query that will find for example in the given table Distinct Col1, with highest Col3 [CODE]A X 1 A Y 2 A X 3 B Y 2 B Z 4[/CODE] So the result should be: [CODE]A X 3 B Z 4[/CODE] ![]() | |
Hi, I want to know how to get the total of rows (of myRead) after I executed: myRead = myCommnd.ExecuteReader(); The only way I get it is using a loop, but exist a command for that? Thanks! | |
I am trying to boost the performance of the startup of my realtime application. I have the interfaces laided out in a xml file that are parsed in and created into a data structure. Would it be worth while for me to struture my program so that once the interface … | |
I have a dynamic array which will be updated from a different test system. I am havign hard time with syntax. Can someone please help me here? Here is where I declare my vector [CODE]void TestSystem::Drive(U32 RunMode, U32 Options) { //U32 is unsigned 32 bit U32 condition; U32 i; U8 … | |
Hello, I m makin database in which i hav 10 tables for each sem storeing student result. i hav link this with php...and giving access to students to see thier results and administrator to edit them olso. i hav a problem in updating the fields. Process: first i authenticate the … | |
I'm writing a program that will parse and print packet information from a tcpdump file. One of the fields is the timestamp, which is in seconds. The program is reading the timestamp into an unsigned int type. I need to be able to convert the timestamp in seconds to a … | |
I need to implement a function which ads elements to a single linked list: -if the head(first element) of the list doesn't exist(if head is NULL), then the added(inserted) element becomes the head(the the data entered is of string type) -if the head already exists, insert it after the last … | |
Hi PERL-fans, I have a problem with an array while coding a histogram: The data is in an array [code=perl]@data[/code] I initialise my histogram array like: [code=perl]@histo=();[/code] Then, I loop over the datapoints and at each point compute in which bin that point would be: [code=perl] for(my $i=0; $i<scalar(@data); $i++){ … | |
#include<stdio.h> #include<time.h> #include<stdlib.h> int paixu(int ,int);//洗牌声明 int main(){ int a[4][13],d,i,j,m,num=0,t=0,b[52]={0}; srand(time(NULL)); for(i=0;i<4;i++){ for(j=0;j<13;j++){ a[i][j]=j+1; } } for(;num<=52;){ d=rand()%52; for(m=0;m<num;m++){ if(d==b[m]){ break; } } if(m==num){ b[num]=d; switch(d/13){ case 0:printf("红桃");break; case 1:printf("方块");break; case 2:printf("草花");break; case 3:printf("黑桃");break; } num++; b[t++]=a[d/13][d%13]; printf("%2d%c",a[d/13][d%13],num%13==0 && num!=0?'\n':' '); } paixu(0,13);paixu(13,26);paixu(26,39);paixu(39,52); } }return 0; } int paixu(int m,int … | |
Heyyyy... I'm trying to get some AJAX going on in my website. It works FINE in IE 6, but when I try it with Mozilla FireFox, nothing happens. Can anybody see anything wrong with the following javascript code? [code] function makeRequest(url, divID) { var http_request = null; try { http_request … | |
I'm just starting to learn Java and I need help. I'm trying to draw a rectangle in an applet window and have it centered so that if the applet is repainted when it is resized, the rectangle will stay centered in the applet window. I know how to retrieve the … | |
I have problems in serializing a list. Here is my class: [CODE]public partial class ProblemType { private List<DateTimeType> dateTimeField; public ProblemType() { this.dateTimeField = new List<DateTimeType>(); } public List<DateTimeType> DateTime { get { return this.dateTimeField; } set { this.dateTimeField = value; } } } public partial class DateTimeType { private … |
The End.