64,152 Solved Topics
Remove Filter ![]() | |
There is a filestream and a streamwriter in Sub Main() Dim fs As New FileStream("c:\OL_Table.htm", FileMode.Create, FileAccess.Write) Dim s As New StreamWriter(fs) //code goes here s.Close() fs = New FileStream("c:\OL_Table.htm", FileMode.Open, FileAccess.Read) Dim d As New StreamReader(fs) d.BaseStream.Seek(0, SeekOrigin.Begin) and there is a class having functions Public Class MailItemClass Function1: … | |
I want to create the effect of a moving square. I would have to clear the previous position of the square and then draw a new one, right? And if that's tru how do I clear just that portion of the screen leaving the rest of my screen in tact? … | |
hi there, I need a hand with recursion in php. I've this array: [code] [Forum] => Array ( [0] => Array ( [id] => 12 [forum_category_id] => 2 [parent_id] => 0 [forum_post_id] => 0 [name] => PHP [description] => [url] => php [topics] => 0 [posts] => 0 [order] => … | |
I have a homework assignment that deals with creating a command line menu, and then selecting items from that menu that do something. the items need to be selected by using either a lowercase or uppercase letter that represents that specific menu item. for example, if i want to print … | |
The department's computer has Python 2.4 and on my home computer (really my dad's computer) I installed Python 2.5. Is it possible to have Python 2.4 and Python 2.5 on the same computer? | |
Since there is so much discussion on one of the threads on zipping/unzipping files and all the associated incompatibilities, is there a way to do this with Python and cut out the middleman? | |
Hello ladies and gents, Gotta few questions if you don't mind: 1) Exc_6_4) Wrote a table of values for the bitwise logical operators and was wondering if any of you could check them out whether they are correct this way. 2) I have to write five examples of undefined behaviour … | |
This is part of a short script I wrote to find out whether students had submitted any corrections to work in December or January. [code=Python] import os, os.path months = ['Dec', 'Jan'] # actually a raw_input() files = get_all_files(root_dir) # actually a call to os.path.walk() dates = [] for i … | |
Heya i was thinking about trying my hand at programming (once again) so I picked up my trusty ol' VB6...and it hit me.. I have no clue as to where to start, as i've just forgotten about everything i've learned. A great start would be muchly appreciated. I was trying … | |
I've set the promt window size to full screen. But now I can't return it to 'window', because it hasn't got a blue header anymore where i can acess the properties. Does anybody know how to set the console window back to 'window' when I press F9 (compile and run) … | |
Hello, all! I just wanted to announce to everybody who browses the game development section here that I, along with my three brothers, will be endeavoring to develop an MMORPG. I am announcing this, not because I'm looking for recognition, but because I'm hoping that, through our efforts, we might … | |
I know wxpython is supposed to be better than tkinter, but I can't find any easy to understand tutorials on how to begin using wxpython. But anyway. How can I get tkinter to load up a jpg? | |
[code]#Auther : vivek sharma #date : 06-11-2006 #Description : This script is used to get the list of week in given year, user have to input the year , def WeekFinderFromYear(year): """ will return all the week from selected year """ import datetime WEEK = {'MONDAY':0,'TUESDAY':1,'WEDNESDAY':2,'THURSDAY':3,'FRIDAY':4,'SATURDAY':5,'SUNDAY':6} MONTH = {'JANUARY':1,'FEBRUARY':2,'MARCH':3,'APRIL':4,'MAY':5,'JUNE':6,'JULY':7,'AUGUST':8,'SEPTEMBER':9,'OCTOBER':10,'NOVEMBER':11,'DECEMBER':12} year=int(year) … | |
Hi all, I have used the checkboxes in my page as given below [code] <input type="checkbox" name="chkboxarray" value=1> <input type="checkbox" name="chkboxarray" value=2> <input type="checkbox" name="chkboxarray" value=3> [/code] If all the checkboxes are selected then how can we get the values of individual checkbox in php during a form submission. Anyone … | |
![]() | Hello, I am new to Python and find it really nice. But I can not launch an executable file using only its name. I have to give its whole path. I expected that the PATH environment variable is known by Python and that it could retrieve the full path itself... … ![]() |
School project, just wondering if there is anymore documentation that I woould need? [code=cplusplus] //********************************************************/ // Tim Petrich, T.Scot Alexander // Program: Project 1 Mystery.cpp // Date: 17 January 2007 // Purpose: Binary Convert // Description: Converts text into binary using the division method // through ASCII code. // The … | |
[COLOR=darkblue]Sub Main() Dim value As String value = "PFolder=oPFolder&SFolder=sfolder&oMsg=i" Dim myFolder As String() = Nothing Dim msgs(5) As Char msgs(0) = "=" msgs(1) = "&" msgs(2) = "=" msgs(3) = "&" msgs(4) = "=" myFolder = value.Split(msgs, 6) Dim f As String For Each f In myFolder Console.WriteLine(f) Next f … ![]() | |
I am in the end part of a Python Gui game build; it is going quite well but I am finding that I underestimated one area of the logic, incorrectly coding it: The game is blackjack. One area that, although it seemed simple on the surface (and in fact it … | |
Hello: I am new to Java and I am working on a tutorial to familiarize myself with this language. The tutorial is a walk-through in building a basic text editor. So far the build is going fine, but I have come to a point where I am unsure how to … | |
Is there any way to get the python interpreter installed on a thumb drive? So that I can edit some programs while at my work, where I'm never on the same computer twice, so installing on each machine isn't as pratical as the thumb drive. Just anything that would let … | |
hi everybody :) i've just bought a sun box on ebay, installed gnu/linux on it and am now trying to write a short assembler program. this seems to be very different from assembler on my tried and trusted pentium III. anyway, i found a few guides on the net and … | |
Hi. I'm having some difficulty here. Perhaps someone here has some ideas. I would like to implement some kind of P2P functionality in an existing application that is designed to work within a local network. The concept of this functionality is that the application stores the username of the current … | |
I wrote a code in [URL="http://vb.net/"][COLOR=#0000ff]VB.NET[/COLOR][/URL] which accesses the outlook folders.Following is the code.According to this code it displays outlook folders and there is hyperlink on each subject.I want when we click on the subject the message body should be [URL="http://dispalyed.in/"][COLOR=#0000ff]dispalyed.in[/COLOR][/URL] href how can we do this? I know we … | |
can anyone please help me to build a form with validation. I am using the form in a html page and it is processed in another php page. The form has only radio buttons for five options.for example cash.if the required cash is less than the user's cash in the … | |
I'm doing a homework for my programming class, the following code is a part of my code which I cut out and formatted to be a 'runnable' program. Now, if you run it you'll notice it creates a data.txt file, writing the amount of student IDs in the record as … | |
Hi guys i am pretty new to XML. Well I have transform a xml file in format A(let's say) to format B. By surfing the websites, I found that XLST can do this.But these 2 formats dun not neccesarily have easy transforms like tag-to-tag. They can be transformed from tag-to-tag,tag-to-attribute … | |
[COLOR=#0000ff]I am writing a code in VB.NET to access MS Outlook folders.Its giving all the folders and their msgs but when any calender meeting or any other things other than the mails appears any the folders like deleted items ,Inbox etc. then it shows exception in line oMsg = oItems.Item(i) … | |
About one month ago or so my Dr. Python compiler (interpreter) died. I had closed Dr. Python to go and eat dinner then came back to re-open and continued where I had stopped and... nothing. This came at a terrible time as I was in the middle of some very … | |
Hello, I have three classes: Circle, Canvas and GameBoard. When I try to compile this I get the error `'cannot resolve symbol - constructor Circle(int,int,java.lang.string)'` I noticed if I delete the parameters of the Circle it will compile. Please could anyone tell me why it doesnt understand the parameters? Do … | |
I know that one has to be careful with mutable arguments like lists applied to function calls, so that things like this won't accidentally happen: [php]def add_item(list2): list2.append(99) return list2 list1 = [1, 2, 3] list3 = add_item(list1) print list1 # [1, 2, 3, 99] oops! print list3 # [1, … | |
Hello, To start with here is the code: Public Function Paymentget (s12MoRate) strCompanyCode = objXML.selectSingleNode("policy/companyCode").text strState = objXML.selectSingleNode("policy/insured/state").text set rsDownPayment = getCache("down_payment") dim tempPremium, totalTaxes totalTaxes = 0 tempPremium = s12MoRate ' calculate the taxes so they can be front loaded in the payment schedule dim TaxCov for each TaxCov … | |
i am using CreateThread to, unsurprisingly, start a thread :p is it possible to return a value? i need to return either true or false at least. ideally i need to return 0, 1 or 2 to indicate the success of certain things that go on inside the thread. I … | |
Hi, I am a dev-pascal program maker that wants to know how to read a line for a limited amount of time. Like for example, if I only wanted to give the user 1 second or 1 milisecond to send in data, how do I do it? | |
Im REALLY new to Java Programming and wanted to teach myself java. I download the newest version of the JDK from the website and have run into the javac problem. I keep getting the error that javac is not found or its not a operable program. (Something like that.) I've … | |
[COLOR=#0000ff][COLOR=black]I am using Visual Basic Express, I hope you all still can help me. This program is used to calculate a cars speed related to speed limit. It has two user inputs, cars speed and speed limit. It will calculate any two digit # and one digit #, but when … | |
this question want the calender,with a number of week and days. in germany,the 1st week is started with monday.i have a problem with the year 2000 and the month is in january.when i type it, it shows the 1st week is in 10th.january 2000, it should be on 3rd january … | |
Hi, I am trying to average student GPA. I thought I had this problem solved but then I ran it and the GPA did not come out correct. Can anyone give any suggestions? [CODE]import string import math class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) … | |
I took a mixed type list and set out to find the min and max values. The results are very surprising to me: [php]mixed_list = [11, 'Dick', 12, 'Mary', 7, 'Zoe', 9, 700, 777, 'Paul', 13456789] mn = min(mixed_list) mx = max(mixed_list) print mn, type(mn) # 7 <type 'int'> print … | |
I want to parse this expression PFolder=Personal Folders&SFolder=Inbox&Message=3 and want to extract Personal Folders from PFolder,Inbox from SFolder and 3 from Message,so that i can further use this things "Personal Folders,Inbox and 3"in the program. How can I do it? | |
Hey everyone. I want to change the following: [code]if ($pageNav->limit < $pageNav->total) puarcade_html::WritePagination($url,$pageNav); echo "<center><br><br><a href=".$livesite."/index.php?option=".$option."&Itemid=".$Itemid."><< Choose Another Game</a></center>";[/code] to this: [code]if ($pageNav->limit < $pageNav->total) puarcade_html::WritePagination($url,$pageNav); echo "<center><br><br><a href="http://novatrader.net/index.php?option=com_puarcade&Itemid=51"><< Choose Another Game</a></center>"; [/code] But everytime I get this error: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/content/s/o/l/username/html/components/com_puarcade/puarcade.html.php on … | |
i hope to find help pleaz i want to criat a complex Report by geting data from access table database thanks | |
I was experimenting with the nested list example in thread: [URL]http://www.daniweb.com/techtalkforums/post246791-72.html[/URL] and was trying to search a nested list like that: [code]nested_list = [1 ,'Dick', 2, ['Mary', 7, 9, [700, 777, 'Paul']], 13] if 'Paul' in nested_list: print 'found Paul' else: print 'Paul not found' [/code]It always tells me that … | |
I want to make a Tkinter button respond to a left and right mouse click differently. How can I do this? | |
Hi, I did get the problem fixed with my "break" not working properly but now my ValueError will not work properly. If you enter a number that is not a floating number it should create a value error(as a matter of fact it did before I fixed my other problem … | |
when I initialize the array in this way: const int size = 10; int myArray[size]; it works well. But I have to initialize it in this way: const int size =pow(2, Depth()+1)-1; int myArray[size]; in this case it throw an error which is "expected constant expression" What should I do??? … | |
Hi everybody, for example I have such a tree in c++: 23 / \ 1 45 \ / \ 2 31 52 \ \ 3 234 \ 5 I can print this tree in this way by using breadthFirst-level method: 23, 1, 45 2, 31, 52 3, 234 5 But … | |
How do you put a bitmap (or possibly jpeg) image on the screen in Turbo C++ ? I just want to display the picture on the screen for about 15 seconds or so and then move on to another screen. Please Help. | |
Hi, I am trying to extend my "Student with the best GPA" program so that it allows the user to sort a file of students based on gpa, name, or credits. The program needs to prompt for the input and output files and also the field to sort on (gpa, … | |
I am having a problem getting my "break" to work correctly in this program. Can anyone help me see what I am doing wrong? This is my program: [code]import string import math class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) self.qpoints = float(qpoints) def getName(self): … | |
Just have small program to practice with Calendar. However I come accross something unusual. Once you set date for 1st April 2007 or 1st June 2008 for example you get wrong number of the week. example bellow show code set to date 1st June 2008 [code] import java.util.*; import java.text.DateFormat; … |
The End.