64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for rajatC

I want to write all the output to the output file and don't want to print on the console output...the file (in which the output has been written) should be opened after i run the program. which function to use for opening a file to see output( at run time)?? …

Member Avatar for rajatC
0
170
Member Avatar for axn

here is the snippet data = ''2007-12-31 Name (mike) Age (34).....' gregorian = time.strftime(data.split(" ")[0]) print gregorian this gives me "2007-12-31" i need to convert the gregorian date in the variable to julian date. i tried this but it gives me the current date julian = time.strftime('%j', time.localtime())

Member Avatar for Duoas
0
2K
Member Avatar for pranavdv

how to validate email field and website field. Means, in email [B]@[/B] and [B].[/B] is compulsory and in website [B]www[/B] and [B].[/B] is compulsory, something like this

Member Avatar for pranavdv
0
136
Member Avatar for theonlyhugeg

hi everybody! im in a basketball team n my coach asked me to make a scoreboard program for the huge screen we have (he knows im the only one from the team that does some programming) im using Visual Basic 2008. i pretty much know how to do everything except …

Member Avatar for hkdani
0
1K
Member Avatar for Daniel E

Alright so I have a class of Food items that contains the information for food, the information gets stored into a Customer Class that hold the information for the order of the customer. Ok so thats just an introduction for details. Each food item contains a status variable that tells …

Member Avatar for Daniel E
0
87
Member Avatar for kv79

Hi, Here is the ( .rc) file .And i know that the pushbutton is not correct . [code] MENU_ID MENU BEGIN POPUP "&File" { MENUITEM "E&xit", EXIT_ID } POPUP "&Help" { MENUITEM "H&elp About", HELP_ID } BEGIN PUSHBUTTON "1",ID_1,30,30,10,10 END END [/code] so i want to make a pushbutton in …

Member Avatar for kv79
0
138
Member Avatar for phalaris_trip

Let's say I'm sure that one of my base classes will never be instantiated, so I decide to make it abstract. But at the same time all of its functions have definitions because they're common to all derived classes (e.g. Physics() will be the same regardless). So I know that …

Member Avatar for phalaris_trip
0
100
Member Avatar for emilio

hello i want to build a function which receives a pointer to a head of linked list reverses the order of the list and returns a pointer to the new head. my list is defined like this : [CODE]typedef struct item { int key ; struct item *next ; } …

Member Avatar for emilio
0
108
Member Avatar for OmniX

Im looking for a piece of code that can be used to select all input text fields and then disable and enable them at will. I was trying to work off this: [code] text = document.getElementsByTagName("input"); [/code] THEN when required: [code] text.disable = true; text.disable = false; [/code] Thanks, Regards …

Member Avatar for OmniX
0
7K
Member Avatar for MG2008

I have a (probably stupid) question about the input buffer. I want to do something while there is no space pressed. But if nothing is pressed, it should be doing it too. The problem is that by using getch(), the script will keep waiting for an input of the user. …

Member Avatar for MG2008
0
110
Member Avatar for n.aggel

I wish a happy 2008 to everyone on this forum. I just obtained the practise of programming{by the way it seems like a great book...} and i have the following code for linked list: [CODE=c] #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct Nameval { char *name; int value; struct …

Member Avatar for n.aggel
0
80
Member Avatar for lafalot

Hi, I have a cferror type = "exception" exception="any" in my application.cfm file. This works great for most errors, but I recently found that it is not working for attribute validation errors. For example, if I misspell an attribute for the cfqueryparam tag, my custom error page is not called. …

Member Avatar for mellamokb
0
133
Member Avatar for jagruthi

Hi friends Plz help Me this is fist time that i sending the post if any mistake plz live it I send My form with manage attachment with the name of untitle my qurey was how to add column to datagrid which we select the item in dropdownlist([B]example[/B] in dropdown …

0
58
Member Avatar for mcx76

I am creating web order form html and php.I am not php coder.So please sorry if i am wrong . The demo page is [URL="http://www.desinovels.com/order/contactus.htm"]Here[/URL] I want if user come and click on check boxes.So i will receive email on completion.when submit.I dont know which tags will be user to …

Member Avatar for nav33n
0
114
Member Avatar for HelloFromHell

Hi, I've recently started learning C++ using 'C++ Demystified' and I'm trying to make this function work. I've done the pointers chapter and I saw a little function that uses <cctype>, and I'm trying to get it to work. Heres the code: [CODE=c++]#include <iostream> #include <cctype> using namespace std; bool …

Member Avatar for HelloFromHell
0
112
Member Avatar for boni_go

Hello, I have some problem with os exception. In the traceback info I get only the errno without the description. for examplem when I write: [code=python] import os; os.listdir("no-exists-dir-name"); [/code] I get the exception: [code=python] Traceback (most recent call last): File "<interactive input>", line 1, in <module> WindowsError: [Error 3] …

Member Avatar for SteveWhite
0
453
Member Avatar for freddiecool

Hi can anyone help me i get an illegal start of expression public static void main everytime i try to compile.My code is below. Thanks... public static void main (String []args){ PrylDialog pd=new PrylDialog(); System.out.println("Welcome!!!!! "); int option=0; do{ option=pd.kommando(); switch(option){ case 1:pd.skapaPerson(); break; case 2: pd.skapaPryl(); break; case 3: …

Member Avatar for freddiecool
0
235
Member Avatar for altzaportu
Member Avatar for laspal

Hi I wanted to know how can I delete class object inside list. class Record: def __init__(self): self.list = [] def add(self): fname = raw_input("First Name:> ") lname = raw_input("Last Name:> ") street = raw_input("Street:> ") self.list.append( Person( fname, lname, street)) Now I have added my Person object into the …

Member Avatar for katharnakh
0
4K
Member Avatar for PL.P27

Hi everybody. First of all happy new year to all. Secondly, I am 3 months into learning Java and GUI and I am having some trouble with comparing strings. I am doing hangman and I have a text field set up for when the player wants to guess the entire …

Member Avatar for rajatC
0
98
Member Avatar for OmniX

Hi Guys, the problem im having is constructing a function that is usable for any submit button if it meets a certain criteria (this case mouseOver). Now orginally I was using the submit button for only one and was working fine but there are three. So I would like to …

Member Avatar for mellamokb
0
126
Member Avatar for Cyb3rAssasin
Member Avatar for Duoas
0
93
Member Avatar for guitarrick

Hello everyone. Happy New Year. I've been going over last semester's book and have found that I've already allowed the basics to run away! We ended with classes, so I've gone back to just doing exercises with basic functions and I keep getting a linker on this one.: Takes input …

Member Avatar for guitarrick
0
82
Member Avatar for Phaelax

Any direction someone could point me in for auto-sizing only the last (right-most) column in a jtable? I want the user to be able to set the size of columns and be allowed to set them beyond the scrollable viewing area, but if the viewing area is wider than the …

Member Avatar for Phaelax
0
1K
Member Avatar for obscured47

Hi again, Is it possible when throwing a custom exception to pause the program instead of just exiting? I have a throw customexception("error msg") in my main and I want to print the error msg and then press return to exit or something like that. Thanks

Member Avatar for obscured47
0
155
Member Avatar for arasten

Hi there, i want to make a program that has a label and i want that label to move from right to left and do it again and again by using timer if its possible, for example: i want it like an electric commercials in some shops or posters...the text …

Member Avatar for AndreRet
0
1K
Member Avatar for Karkaroff

in the following code, getch() is executed before the file is displayed.! whats wrong? how can i correct this? [CODE='c++'] void ReadFile() { char fname[13],ch; cout<<"Enter filename : "; cin>>fname; strcat(fname,".mth"); temp.open(fname,ios::in|ios::nocreate); if(!temp) { cout<<"File does not exist!!!"; getch(); return; } temp.get(ch); while(!temp.eof()) { cout.put(ch); temp.get(ch); } temp.close(); getch(); } …

Member Avatar for Karkaroff
0
311
Member Avatar for javaAddict

Does anyone know where can I find how to calculate how many days February has for a given year?

Member Avatar for javaAddict
0
294
Member Avatar for thetechguy

I am somewhat new to the c++, so you've been warned. Yesterday I decided I wanted to create a program that displayed a Go board and allowed you make moves. Fairly simple task, didn't take me that long but, I feel that the code could be a lot shorter and …

Member Avatar for thetechguy
0
734
Member Avatar for palcham

Hi I cann't unable to get count the selected list box items using javascript so you please help me. if you know means please send to me Advance thanks

Member Avatar for palcham
0
219
Member Avatar for Samudricka

help me that i am working in a sax parser project. it moves inside start and end document but not into start and end element.

Member Avatar for Samudricka
0
191
Member Avatar for rogelioz

Hi, I'm having a having a hard time trying to insert some data into a mysql DB, so I'd like to know if there is some kind of error log that could help me. I've already looked into the binary log but it didn't help me. I also started mysql …

Member Avatar for nav33n
0
101
Member Avatar for toolmanx

Running AMD XP SP1 - Bitmap can be any bitmap with a bitcount of 24. Compiling with Borland using .cpp extentions. I'm still having trouble getting CreateDIBitmap to work for me. The hex bits from my bitmap are saved in memory. I can see them. I've read that Windows just …

Member Avatar for toolmanx
0
542
Member Avatar for xeption12

Can anyone please help me with an answer? I have Intel Core 2 Quad Q6600 2.4 Ghz processor and i've downloaded PC Wizard 2008 to see information about computer (especially for CPU usage and temperatures). The problem is (it isnt actually a problem ... ) why when using Borland C++ …

Member Avatar for xeption12
0
152
Member Avatar for stupidenator

Hey everyone, I am new to Ruby on Rails and I am having a problem that I can't seem to figure out. I have a mysql database that I created and I have created a model for it. I have did not create a migration, as the database is already …

Member Avatar for stupidenator
0
122
Member Avatar for tefflox

Hello, I'm pleased to be here by way of the html forum. I've been using php for static pages for 18 months. I wanted to learn rails, but I just realized that I could configure my host to automate index.rhtml files just like php. This is a major motivator for …

Member Avatar for pty
0
114
Member Avatar for ruudboy

Im using: [CODE]OpenFileDialog1.Title = "Select your image" OpenFileDialog1.InitialDirectory = "C:" If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then PictureBox1.Image = New System.Drawing.Bitmap(OpenFileDialog1.FileName) End If[/CODE] for browsing an image but i want to create a filetype so i have to use OpenFileDialog1.Filter but it wont work. I've used: [CODE]OpenFileDialog1.Filter = "Foto's (*.jpg,*.bmp,*.jpeg,*.png,*.wmf,*.gif)|*.jpg|*.bmp|*.jpeg|*.png|*.wmf|*.gif"[/CODE] How can …

Member Avatar for ruudboy
0
90
Member Avatar for rogelioz

Hi, I have the following code: [code] $date = 'Nov 7, 2007'; echo date('Y-m-d', strtotime($date));//outputs 2007-11-07 $date2 = $dates[1][0]; echo $date2;//outputs Nov 7, 2007 echo date('Y-m-d', strtotime($date2));//outputs 1969-12-31 [/code] How can I have the last line output 2007-11-07? Thanks in advance.

Member Avatar for rogelioz
0
106
Member Avatar for Qpido

[URL="http://img442.imageshack.us/img442/3852/programjy5.jpg"]My Program[/URL] The link above leads to a picture of the program I made. This program makes the price show up out of an Excel file for transportation costs. With the help of some on this forum I have gotten this far with the program, and I'm very grateful for …

Member Avatar for Qpido
0
201
Member Avatar for Gardibald

Firstly to tell that im glad to find your site. Thanks i've starting a new program and i need to backup my tables. so i tried the command [CODE]copyfile[/CODE] and [CODE]send to[/CODE] but it doesent work. so please help me. i need to save my db tables to another location …

Member Avatar for Gardibald
0
110
Member Avatar for Atticus

I am setting up a gallery using LightWindow or ThickBox. I've added all the js & css files but the gallery will not work properly. When I click on a thumbnail, the LightWindow or ThickBox is suppose to open and display the image, instead the image opens into a new …

Member Avatar for Atticus
0
103
Member Avatar for crunchycoder

im adding lines to a richedit control and after a while it starts to overwrite text i create the window like this in the main window proc WM_CREATE [code] HINSTANCE RichEditLibHinstance = LoadLibrary("Riched32.dll"); HWND RichEdithWnd = CreateWindowEx(WS_EX_CLIENTEDGE, "RichEdit", "", WS_CHILDWINDOW | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_HSCROLL | WS_VSCROLL …

Member Avatar for Duoas
0
176
Member Avatar for joshua.tilson

Hello, I am looking for some advice on how to do something within PHP, i know it is possible and have seen examples before, however I am not sure how to implement this myself. What i am looking at doing is including PHP pages within a main PHP page. for …

Member Avatar for chrelad
0
112
Member Avatar for Dha_King

Hello everybody, this is a sad story really, 3 days ago my code worked fine now it don't. I get this error "XML Parsing Error: junk after document element Location: [url]http://localhost:1218/projektCsharp/Default.aspx[/url] Line Number 11, Column 1:" If i try to remove or mark out "<?xml version="1.0" encoding="utf-8" ?> <guestbook xmlns="http://me.com/guest.xml" …

Member Avatar for Dha_King
0
934
Member Avatar for kartik07

I know how to pass a single text from one form to another form 1- declare a public variable in the general part of the form like this [B]public varaiableName as String[/B] 2- in the [B]form_load()[/B] write [B]variableName=text1.text[/B] 3- you can access this variable from any other form using the …

Member Avatar for choudhuryshouvi
0
142
Member Avatar for emilio

hi i'm trying to write program to create a mirror print of a binary tree the code is : [CODE]typedef struct Node { int info ; struct Node *left , *right ; } Node ; void swapNode ( Node *n1 , Node *n2 ) { Node *tmp = NULL ; …

Member Avatar for emilio
0
96
Member Avatar for gjain81

Hi I want code to find out the crc32 checksum of a string in c# that should follow the zip algorithim of this crc32 methodology. Could not find any freakin code out there using google :( Can any one help?

Member Avatar for gjain81
0
153
Member Avatar for redZERO

I have a script which takes the variable from a form and puts it into a mysql table. There is an entry, but inside the field it is blank. I have attached screenshots. This is my code [CODE] // prepare form values for insert $URL = mysql_real_escape_string($_POST['url']); // Make mysql …

Member Avatar for redZERO
0
82
Member Avatar for eranga262154

Hi all, I've create a window as follows, [CODE=cplusplus] void CRtf::Initialize(void) { HWND m_hwnd_RTFBox = CreateWindowEx( WS_EX_APPWINDOW, RICHEDIT_CLASS, "RichTextWindow", WS_BORDER|ES_MULTILINE, 0, 0, 100, 100, ::GetConsoleWindow(), NULL, 0, NULL); } [/CODE] After doing all the process, I've destroyed the window as well. My question is this. I use the above handler …

Member Avatar for eranga262154
0
105
Member Avatar for GRaymer

Just wondering if anyone has experience with wxPython. I've been looking for info about the spinButton I want to increment it at 5's or 10's just wondering if anyone has some quit hints or info. Thanks

Member Avatar for vegaseat
0
84

The End.