199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ragoune

Hi, As I'm new to C++, but not to programming, I tried to start simple by reading off value from the registry. I'm talking about standard values such as the processor's name. I made a little function which checked how many processors the user has, that works fine. But I …

Member Avatar for Ragoune
0
3K
Member Avatar for gunbuster363

Here is my code. If I use forloop to write, it got error: Traceback (most recent call last): File "m.py", line 20, in <module> f.write(tag[i].string) TypeError: argument 1 must be string or read-only character buffer, not None HOWEVER, if I don't use for loop, instead write as : f.write(tag[1].string) it …

Member Avatar for gunbuster363
0
151
Member Avatar for kernel>panic

Hi, I have been trying to figure this out: How do you remove more than one thing like this remove("C:/Users/"+name+"/Documents/help"); How I want it to work is the users specify's there user name and then it opens the C drive>Users>Then it needs to add the input user name. Thanks.

Member Avatar for thines01
0
122
Member Avatar for Mona1990

Hi I was wondering if someone could help me to figure out how to write a code for : Write a function print_table which consumes two parameters, a list of list of strings, and an integer for the length of the list. The function should print out the strings from …

Member Avatar for Mona1990
0
300
Member Avatar for paruse
Member Avatar for thines01
0
208
Member Avatar for Dorayaki

Hi, I want to ask about listbox things. I made a Listbox, 3 textbox, and a Database The Database Table is Member The member field has 4 which is MemberID, Name, Address, Phone. I have 2 records and it were display to the listbox which are Adry and Brandy (I …

Member Avatar for TomW
0
183
Member Avatar for Carrots

Hi, I have wrote a program which stores values in a .csv file. He is the how the data is stored in the .csv file: [quote] "Steve","21 Main Street, Nottingham","SW1 1AB","0115 9123456","These are some details. and, so.","112233","1359" "David Baner","123 Shaw street, Nottingham","NG92HJ","020 123456","ifbiugbuige","112233","1200" [/quote] Each line forms a single object. …

Member Avatar for Ancient Dragon
0
165
Member Avatar for Alex_

Hey guys. I am trying to print different messages in dependency of what char you press. In my case i use, F1,F2,F3, escape. The problem is that the first message is printed again after a char input is read, which it shouldn't! This is my code, please tell me where …

Member Avatar for Alex_
0
117
Member Avatar for feinbaby

The problem question is, add a close method to the Auction class. This should iterate over the collection of lots and print out details of all the lots. You can use either a for each loop or a while loop. Any lot that has had at least one bid for …

Member Avatar for feinbaby
0
375
Member Avatar for mahela007

What would it take to make graphics show on the monitor without using stuff like tkinter and Qt? (tkinter and Qt are called toolkits right?)

Member Avatar for mahela007
0
261
Member Avatar for gunbuster363

I want to create a file and open it and write on it with f= open('out.txt', 'a') then it got error: File "m.py", line 10, in <module> f=open('./out.txt', 'a') IOError: [Errno 13] Permission denied: './out.txt' What happened?? I am using opensuse and was using a user account to edit and …

Member Avatar for gunbuster363
0
124
Member Avatar for leegeorg07

Hi I have been trying to use the python subprocess module but I find the documentation for 2.6.4 vague, does anyone else know of good tutorials for it? thanks in advance

Member Avatar for leegeorg07
0
95
Member Avatar for XLL

Hi all,I got a issue that how can I run several functions at same time? say [CODE] a=1 def function1(a) a+1 return a def function2(b) b+2 return b def plotGraph(a,b) return graph [/code] how can I just run plotGraph function here?..I am totally newb..hope anyone can help..thanks

Member Avatar for pythopian
0
115
Member Avatar for jnthn205

Im writing this in netbeans. Here is the code: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package accounttoolssilverberg; /** * * @author Administrator */ public class accountToolsSilverberg { double a[]; int i; public accountToolsSilverberg() { a = new …

Member Avatar for jnthn205
0
88
Member Avatar for greenerworld007

Hi, I hav heard that it isn't that simple to write a program in linux using c. Lots of commands n stuff.Please simplify what actually I've got to do to run turbo c++ in my linux laptop as I am a beginner.

Member Avatar for necrolin
0
184
Member Avatar for MattyRobot

would there be anything wrong with making an includes.h which has all of the .h files my project needs to link to. or is it better to link to them when needed?

Member Avatar for MattyRobot
0
138
Member Avatar for jex89

Hi, I don’t know if anyone would be able to help me with the following problem, I am hoping :D .. I have looked on the internet but no look. I have pickled a document into the pickle object, how can I now search the pickled object to remove a …

Member Avatar for pythopian
0
3K
Member Avatar for deftones

Hey, I faced one tiny problem, but I can't figure it out. What I need is basically "label1 = format(now, "hh:mm:ss")", but I want start counting time from zero: "00:00:00".. Any help?

Member Avatar for akhileshbc
0
90
Member Avatar for coollife

byte array size is 977kb when i try to store into ms access database its getting stored without error making the ms access database size 140kb(i know it uses different format to store so lesser kb) But when i try retrieving the same code from ms access database and when …

Member Avatar for DdoubleD
0
490
Member Avatar for Geekitygeek

Hi, this is giving me a major headache and my boss wants the project wrapped up asap : / I have two views pulling data from several tables. The end result is this: CustomerTotals CustomerID numeric(18,0), ProductID numeric(18,0), Delivered numeric(5,0), Ordered numeric(5,0) SupplierTotals SupplierID numeric(18,0), ProductID numeric(18,0), Delivered numeric(5,0), Ordered …

Member Avatar for Geekitygeek
0
131
Member Avatar for calccrypto

I wrote my own sha implementations but i cant get them to read files correctly. i know to use [CODE]open(file,'rb').read()[/CODE] as the input into the algorithm, but [CODE]import hashlib hashlib.sha1(open(file,'rb').read()).hexdigest()[/CODE] and my code [CODE]sha_1(open(file,'rb').read())[/CODE] return two different hashes. any idea why? i know that a normal string will have the …

Member Avatar for mn_kthompson
0
148
Member Avatar for jakesee

Hi matlab experts, I didn't think daniweb has a matlab forum so I went over to another math forum to ask for matlab help. but i think it's either I am too stupid for the mathematicians or they are too smart to realize that it is NOT obvious what i …

Member Avatar for Rashakil Fol
0
282
Member Avatar for jaison2

The function should ask the user for the price of the delivery and if the price is less than £10 then it should print a statement saying "the total price including the delivery charge is" + £1.50 or it should just output the normal price if it is more than …

Member Avatar for snippsat
0
224
Member Avatar for benkyma

I need to make ten selections. One of all the datetimes in the last 24 hours, the next one from 24 hours to 48 hours, and on back in 24 hour blocks for the last ten days. I've tried various approaches to this, but this is what I currently have: …

Member Avatar for benkyma
0
91
Member Avatar for feoperro

Hi, I'm trying to create a program where I can monitor when a server running a Tomcat Application Server goes down. I will need to check an IP & PORT every 5 minutes for example and get back a boolean on whether it is up or not. I've tried googling …

Member Avatar for feoperro
0
118
Member Avatar for want_to_code

[B]Given an array of elements. An element is called as a leader if it is greater than all the elements to the right of it. Print all the leaders in O(n)?[/B] The following is my approach.Can anyone tell me how to improve the code and also the current time complexity? …

Member Avatar for thines01
0
121
Member Avatar for henabibi

I am trying to run this program but it is giving "unable to open socket" eror. i am running this program on a server via putty which is hosted in my univerity server with wireless network. the code is : [code=c]#include <pthread.h> #include <netinet/ip.h> #include <netinet/tcp.h> #include <stdlib.h> #include <sys/socket.h> …

Member Avatar for Nick Evan
0
182
Member Avatar for XLL

Hi all, I am a newb, got a simple question, anyone can give any idea about it will be great,thanks in advance. a=2 b=3 def functionA(a,b): c=a+b return c def functionB(c) answer=c+1 return c but this code doesnt work....what I want is just assign functionA as one of the argument …

Member Avatar for jlm699
0
82
Member Avatar for Garee

I'm having a little trouble with a piece of code im trying to write. I have created a deck of cards and then shuffled them however now I am trying to covert my deck (which is simply a list containing the numbers between 1 and 52) into the form "AS", …

Member Avatar for vegaseat
0
346
Member Avatar for coollife

[CODE] // writing to access database byte[] buff = null; FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read); BinaryReader br = new BinaryReader(fs); long numBytes = fs.Length; buff = br.ReadBytes((int)numBytes); mycon.Open(); OleDbCommand cmd = new OleDbCommand("INSERT INTO song VALUES('1','" + buff + "')", mycon); cmd.ExecuteNonQuery(); // reading from access database OleDbCommand …

Member Avatar for DdoubleD
0
246
Member Avatar for nevets04
Member Avatar for PDB1982

I need to complete a simple program that takes an input file with the following information: Johnson 85 83 77 91 76 Aniston 80 90 95 93 48 Cooper 78 81 11 90 73 Gupta 92 83 30 69 87 Blair 23 45 96 38 59 Clark 60 85 45 …

Member Avatar for pecet
0
136
Member Avatar for Garee

Hello I'm designing a database for my Computing Science department and I am having some trouble with the ER Diagram. Any help would be great appreciated. What I have so far is: Each course has a ID Code, title, is taken by one or more students and is taught by …

Member Avatar for timothybard
0
124
Member Avatar for forzadraco

i have problem with rewrite url in .htaccess [CODE] Options +FollowSymLinks RewriteEngine On RewriteBase /web/ RewriteRule ^([^/]*)$ artist.php?artist=$1 [R] [/CODE] i'm used [R] because i can see that mistake.. if i'm type: [url]http://localhost/web/djardy[/url] but it's redirect to : [url]http://localhost/web/artist.php?artist=artist.php[/url] it's should be redirect to : [url]http://localhost/web/artist.php?artist=djardy[/url] and i change the …

Member Avatar for royalrai_p
0
216
Member Avatar for P00dle

I need to read files from a folder(Directory will always be the same) There will at most be 4 files in the dir, but it could be anything from 0-4 files. They will always have the same name. i.e. In the dir "Folder" there will be(Could be any combination of …

Member Avatar for peter_budo
0
115
Member Avatar for zyrus001

I though it'll be interesting to look at threads and queues, so I've written 2 scripts, one will break a file up and encrypt each chunk in a thread, the other will do it sequentially. I'm still very new to python and don't really know why the treading script takes …

Member Avatar for Gribouillis
0
266
Member Avatar for rigidboss

Hello All... I have a requirement to create a chat forum.. I cannot use php or other related stuff. I'm not provided with database even.. My idea is that I can use java applet to create a chat window... What ever post which when given, it will be saved in …

Member Avatar for rigidboss
0
113
Member Avatar for chathuD

guys.i need to start a research based IT project for my final year project.but the thing is still i dont have an idea for a such project.so can some 1 help me by giving a good project idea

Member Avatar for Geekitygeek
0
249
Member Avatar for elanorejoseph

[CODE]If the variable $a is equal to 5 and variable $b is equal to character a, what’s the value of $$b? the answer to this question is give as 100 can any one please tell me how?[/CODE]

Member Avatar for elanorejoseph
0
75
Member Avatar for redbrad0

I have been searching around for how to sort by a set column DESC in the code but everything seems to reference the datagrid sorting a database or something along those lines. If I manually built my datagrid record (Rows.Add), how can I sort the records by the first column …

Member Avatar for Geekitygeek
0
68
Member Avatar for panam72

Need help with the following to put a website back online. Im not the most experienced PHP programmer so yuor help is appreciated. The error: Parse error: syntax error, unexpected T_STRING in /home/stacklab/public_html/includes/content/homepage_content.php on line 5 The Syntax: <?php define("HOMEPAGE_CONTENT",'<div align="justify" class="homepageContent"><p><h1> Buy Legal Steroids & Bodybuilding Supplements Online - …

Member Avatar for Clawsy
0
224
Member Avatar for sentinel123

Hello This is like my 4th week using Python and I'm still not familiar with it so I might need some help from you guys. I gotta write a little Connect 4 game in Python, I just got started and boom - I'm stuck! I tried to create a board …

Member Avatar for sentinel123
0
2K
Member Avatar for vuyiswamb

Good Day all i have the Following Query [CODE] DECLARE @CurrentTime DATETIME SET @CurrentTime = CURRENT_TIMESTAMP select tr.Descr [Room], tb.Purpose [Purpose], tb.Description [Description], convert(varchar,datepart(hour,tb.starttime))+':'+convert(varchar,datepart(minute,tb.starttime)) [Start Time], convert(varchar,datepart(hour,tb.endtime))+':'+convert(varchar,datepart(minute,tb.endtime)) [End Time], tu.name [Requested by] from tbl_booking tb inner join tbl_resource tr on tb.resources = tr.id inner join tbl_user tu on tu.id = …

Member Avatar for vuyiswamb
0
89
Member Avatar for tgsoon2002

I have know programming for 5 years. but not get any process yet. I want to ask what you do when you get a project and meet some problem? normally we must get the idea, pseudocode, get the flow of program. now i get the flow of program, idea. but …

Member Avatar for Geekitygeek
0
93
Member Avatar for wchitamb

I am trying to write a bulk import routine so that i will be able to import text files or csv files to SQL i have tried this and it's giving me the following error message. P: is the drive where the file is in currently. [CODE] USE [XYZABQ] GO …

Member Avatar for MeSampath
0
124
Member Avatar for abhay1234

Hi. i am trying to learn c# I have newly installed Visual studio dot net 2005. i typed the following program but not getting ouptut i did file->new->file->visual c# i tried the following code [code] // Namespace Declaration using System; // Program start class class InteractiveWelcome { // Main begins …

Member Avatar for abhay1234
0
130
Member Avatar for thirumca

How to reduce the image weight using asp.net, without lose of image quality and image pixels. For example i have an image with the size of 4 MB (3024*2045), so how to reduce the image weight ie 4 MB to 1 MB without lose quality in the same pixels ie(3024 …

Member Avatar for thirumca
0
108
Member Avatar for T-Dogg3030

I'm trying to open a txt file using command line arguments in Visual C++. I know you need argc and argv[] in the main. What would be an example you would type into the text field on project>properties>debugging>command arguments? How would you display the text on screen? After reading the …

Member Avatar for Nick Evan
0
17K
Member Avatar for andrewsCWD

I have a php script which validates some form information submitted by the user. This information is then stored in my database. I use a do...while to ensure that duplicate email address are not submitted to the database. The script worked fine the first time I ran it, it entered …

Member Avatar for network18
0
170
Member Avatar for William Byrd II

[November] 13. Greetings and salutations! I am currently experiencing some trouble with some novice coding, and some assistance would be greatly appreciated. My goal is to access the static data member and static function of friend class Counter without actually creating a Counter object. I am under the impression that …

Member Avatar for dkalita
0
135

The End.