199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Killer_Typo

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 …

Member Avatar for baedaar
0
830
Member Avatar for Exercitus

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; …

Member Avatar for daviddoria
0
420
Member Avatar for buster2209

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]

Member Avatar for Diamonddrake
0
686
Member Avatar for ShadyTyrant

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. …

Member Avatar for ShadyTyrant
0
105
Member Avatar for tonyfingures

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 …

Member Avatar for NormR1
0
1K
Member Avatar for eyeripper

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 …

Member Avatar for eyeripper
0
100
Member Avatar for jtaylor-bye

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 …

Member Avatar for redyugi
0
3K
Member Avatar for python_user

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 …

Member Avatar for python_user
0
5K
Member Avatar for didier1984

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 …

Member Avatar for didier1984
0
96
Member Avatar for NewOrder

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]

Member Avatar for NewOrder
0
119
Member Avatar for Win Myat

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 …

Member Avatar for Dazaa
0
7K
Member Avatar for Dazaa

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 …

Member Avatar for Dazaa
0
1K
Member Avatar for MichaelWClark

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 …

Member Avatar for Ezzaral
0
82
Member Avatar for Mikahi

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? …

Member Avatar for mshauny
0
72
Member Avatar for nezbo

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 …

Member Avatar for NormR1
0
193
Member Avatar for N1GHTS

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 …

Member Avatar for N1GHTS
0
613
Member Avatar for dschuett

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 …

Member Avatar for dschuett
0
296
Member Avatar for flyingcurry

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 …

Member Avatar for NormR1
0
208
Member Avatar for Zee2010

Hi All Can anyone recommend good CF reference guide for quick access when you are mobile and dont have internet access.

Member Avatar for teedoff
0
85
Member Avatar for sera1989

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 …

Member Avatar for Fbody
0
182
Member Avatar for ryan461

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 …

Member Avatar for mitchems
0
87
Member Avatar for .:Pudge:.

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 …

Member Avatar for StuXYZ
0
383
Member Avatar for gayanthi

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 …

Member Avatar for codeorder
0
184
Member Avatar for abdelhakeem

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...

Member Avatar for abdelhakeem
0
114
Member Avatar for pietpiraat

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(",", …

Member Avatar for pietpiraat
0
1K
Member Avatar for ppetree

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 …

Member Avatar for somedude3488
0
362
Member Avatar for greatunknown

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 …

Member Avatar for greatunknown
0
79
Member Avatar for morancr

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 …

Member Avatar for jon.kiparsky
0
96
Member Avatar for mulevad

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> …

Member Avatar for iceandrews
0
173
Member Avatar for apautz22

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 …

Member Avatar for apautz22
0
885
Member Avatar for Anon17

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 …

Member Avatar for Anon17
0
385
Member Avatar for doffing81

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 …

Member Avatar for snippsat
0
101
Member Avatar for dschuett

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 …

Member Avatar for dschuett
0
191
Member Avatar for acrocephalus

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 = …

Member Avatar for acrocephalus
0
243
Member Avatar for hidash_in

[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 …

Member Avatar for Ezzaral
0
300
Member Avatar for JohnPhilipps

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 …

Member Avatar for ankurgecr
0
2K
Member Avatar for acrocephalus

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 …

Member Avatar for acrocephalus
0
724
Member Avatar for itiwcsingkaww

[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]

Member Avatar for nbaztec
0
194
Member Avatar for peanutz

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]

Member Avatar for 1stDAN
0
127
Member Avatar for ja0

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!

Member Avatar for ja0
0
133
Member Avatar for Talguy

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 …

Member Avatar for Talguy
0
87
Member Avatar for usustarr

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 …

Member Avatar for usustarr
0
238
Member Avatar for mayursharma

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 …

Member Avatar for mayursharma
0
114
Member Avatar for cableguy31

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 …

Member Avatar for Ancient Dragon
0
147
Member Avatar for CPT

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 …

Member Avatar for Ancient Dragon
0
158
Member Avatar for uan_Blr

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++){ …

Member Avatar for uan_Blr
0
179
Member Avatar for Adrop

#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 …

Member Avatar for Ancient Dragon
0
241
Member Avatar for AndrewSmith

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 …

Member Avatar for intsam
0
2K
Member Avatar for packetpirate

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 …

Member Avatar for packetpirate
0
5K
Member Avatar for vihrao

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 …

Member Avatar for nick.crane
0
157

The End.