64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for M40

Hi. I have tables like these: [B]table1 [/B]([U]table1_id[/U], table1_attribute1, table1_attribute2) [B]table2 [/B]([U]table2_id[/U], table1_id*, table2_attribute1, table2_attribute2) The primary key of the first table is table1_id. It is auto incrementing and it is also a foreign key for the other table - [B]table2[/B]. Let's say I want to add a new record …

Member Avatar for M40
0
140
Member Avatar for aot

Hi, I'm a noob Python/Tkinter user, and I'm finding that gathering information on the two is not as easy as I'd like... hopefully you guys will be able to help. My first question: I was just wondering if there's a way to tell Python, "take all the files in X …

Member Avatar for mawe
0
100
Member Avatar for WolfPack

Does any of you know how to get the pathname of the perl script that is being executed? Say it is located in [inlinecode]/home/wolfpack/perl/[/inlinecode] I run it from [inlinecode]/home/wolfpack[/inlinecode] by giving the absolute path name like, [inlinecode]/home/wolfpack/perl/scriptname [arguments][/inlinecode] I want to get the path [inlinecode]/home/wolfpack/perl[/inlinecode] so that I can use …

Member Avatar for WolfPack
0
174
Member Avatar for scru

Hi. SInce you guys were so helpful the last time around, I decided to ask a less pressing, but more casual questions. My friends and I want to build a private p2p client (connects to our computers through this client to share files and do messaging), just for the heck …

Member Avatar for scru
0
113
Member Avatar for kimbokasteniv

A friend of mine and I are taking an external computer science test. While studying the review it has become apparent that some of the syntax presented is quite unfamiliar. Here are a few examples: [INLINECODE]Stack<Integer> s = new Stack<Integer>();[/INLINECODE] For this line of code what exactly is the purpose …

Member Avatar for jwenting
0
132
Member Avatar for kanaku

I'm using an html form to add to a list, specifically a flatfile database called demo3.txt. The add.php file is this: [CODE] <?php $name = $_POST['name']; $nickname = $_POST['nickname']; $motto = $_POST['motto']; $fp = fopen("demo3.txt","a"); if(!$fp) { echo 'Error: Cannot open file.'; exit; } fwrite($fp, "\r\n".$name."|".$nickname."|".$motto); echo 'The data has …

Member Avatar for kanaku
0
99
Member Avatar for vasudha k

I have a small problem........ I have designed a page which should be accessed by valid users. after logging in , they have to access the page via a link. for this i have used send redirect method . but my session object is not being passed here. via the …

Member Avatar for vasudha k
0
152
Member Avatar for Sarah Lee

Hi Everybody I am trying to get some function which returns - current month name - current year - date range ( for February displaying 2/1/2007 - 2/28/2007) -year range ( 1 Jan 2007 - 31 Dec 2007) I was wondering, is there any functions for these? I searched a …

Member Avatar for Sarah Lee
0
707
Member Avatar for M_K_Higa

Ok folks. I just found a cool Button property called [inlinecode]Button.PostBackUrl[/inlinecode]. It works fine when you set this property and click on the button -- it takes you the page specified in the [inlinecode]PostBackUrl[/inlinecode] property. At first glance, it looked very promissing for cross-page coding. Here's my problem... I have …

Member Avatar for M_K_Higa
0
2K
Member Avatar for lovduv

***UPDATE Solved*** Needed to change to this <script runat="server"> protected void Page_Load(object sender, EventArgs e) { Page.DataBind(); } </script> and this [code]<script type="text/javascript" src='<%#"http://www.somesite.com/cool.asp?nick=" + Request.QueryString["Nname"]%>'></script>[/code] With the variable Nname from my database via a DeatailsView control. I am really new to asp.net and I feel that I am just …

0
111
Member Avatar for bhavna_816

I want to validate a text area using required field validator but when i select control to validate from properties then the textarea id of this text area is not getting displayed. What's wrong with it ? Can anybody know this?

Member Avatar for kapil.goyal
0
103
Member Avatar for Rickenbacker360

Hello, I have an exam on wednesday and was given a practice exam but I'm having a little a bit of trouble. 8.What will be displayed on the screen after the following statements are executed in a C++ program? [code] [COLOR=#000000] int a=5, b=2, c=1, d=3;[/COLOR] [COLOR=#000000] int t;[/COLOR] [COLOR=#000000] …

Member Avatar for Rickenbacker360
0
120
Member Avatar for n.aggel

hello to everyone, i have the followign problem: i need to get the system date-time and then i need a way to add minutes(!!) to this variable.... in particular i want to make a program{part of a another program} that will print on a file dates&times. The problem is that …

Member Avatar for n.aggel
0
155
Member Avatar for blackjack

I'm not that used to C++ and hoping that someone can help me out with the [b]const[/b] keyword. If I make a parameter to a function 'const' ,and then try to reference it, like: [code=c++] int some_func(const char* param){ char* ptr = param; ... } [/code] to do something with …

Member Avatar for John A
0
115
Member Avatar for danizzil14

Ok, all I want ot know is how to close a script on command, lie type 3 to exit, what modules do i need to import and what is the command, I have everything else sorted out... EDIT: The close command will go in a if statement, which is in …

Member Avatar for ghostdog74
0
166
Member Avatar for Matt Tacular

I would like to make my program grab an integer from the user (binary) and convert it to a normal number, I plan to do this manually but I need to know how to do something first: If the user enters, for example, 10110101 I need to be able to …

Member Avatar for Matt Tacular
0
82
Member Avatar for mattyd

I am at the end of a build and am putting some minor touches on and testing; one area I suppose I took for granted (and have honestly not seen a need yet to fully deal with) is the Tkinter buttons. The buttons perform fine overall as to their function; …

Member Avatar for mattyd
0
18K
Member Avatar for xtrasponge

this the my first assignment given by my lecturer. i've tried to do it and manage to compile..but the problem is i got confused on how this program execute? is it line by line like c++? can someone show me the sequence on how my program being executed and maybe …

Member Avatar for jwenting
0
118
Member Avatar for ajaytee

hey guys, need some help with this project i have made. Static temp(7) As Integer Dim total As Integer Dim I As Integer Dim average As Single 'Initialize Randomize() 'Temperature Generator For I = 1 To 7 temp(I) = Int(Rnd(1) * 38 + 1) Next I For I = 1 …

Member Avatar for Ancient Dragon
0
94
Member Avatar for bad_robot

Hi i'm new to VB6 and i just wanted to ask how to save the columns in a ListView to an Access DB... The format i use to save individual textbox to an Access DB is.... [code=visual basic 6] With adorecordset .Fields!Name = Text1.Text .Fields!Address = Text2.Text .Fields!Phone = Text3.Text …

Member Avatar for bad_robot
0
105
Member Avatar for WhYuLoOkIn

Can any one please explain the for statement in this code, I understand the initialization of i=2 and the increment of i=i+1, but I dont understand the conditional test of i<(num/2)+1. The program displays all the factors of a number entered by the user. I don't understand why you need …

Member Avatar for WhYuLoOkIn
0
94
Member Avatar for sneekula

Is there a way to preselect/highlight a listbox item with the Tkinter GUI toolkit at the startup of the program without clicking the mouse on it?

Member Avatar for sneekula
0
1K
Member Avatar for scru

Hi. I've just registered, but I'm not exactly new to here (i've been lurking as a guest). I'm trying to make a countdown timer based on a class that I created, which accepts hours, minutes, and seconds as parameters and counts them down to zero, will displaying them in a …

Member Avatar for scru
0
828
Member Avatar for rwagnes

Hey, I am trying to open a file with a relative pathname: e.g. file=fopen("/files/index.html"); where the files directory is in the same location as the executable. For some reason the executable cannot locate the file. Why? Thanks, Elise [Edit] OK it works without the initial slash in the path name …

Member Avatar for Ravalon
0
92
Member Avatar for mattyd

I am searching for the syntax that will allow me to arrange widget buttons in a Tkinter GUI in a specific manner; currently I have three (3) buttons that are stacked[I] vertically[/I] on top of one another. I wish to arrange the buttons so that they form a row of …

Member Avatar for mattyd
0
3K
Member Avatar for rwagnes

Quick Question: Is there a way in c to read an entire file into a string or char buffer? Thanks, Elise

Member Avatar for rwagnes
0
340
Member Avatar for mattyd

[U][B]I have two questions regarding Tkinter GUIs[/B][/U]:[LIST=1] [*]I have three buttons in a GUI; at times it seems that the buttons "stick". By this I mean when the mouse is clicked on one it may activate or it [I]may not[/I]. They all work correctly in regards to there function(s) but …

Member Avatar for mattyd
0
189
Member Avatar for Rickenbacker360

Hey again I need a little help with this assignment. What I'm supposed to do is have a user enter a positive integer and then the program should tell the user all the prime numbers before the number the user entered. However, with my program when I enter 22 for …

Member Avatar for vegaseat
0
230
Member Avatar for Sarah Lee

Hi everybody I have two listboxes. I have set the selectmode to multiple but when i select multiple items from listbox1, and then clcik ADD button, only one item is getting added How can i add all the selected items at a time I am using Protected Sub btnAdd_ServerClick(ByVal sender …

Member Avatar for Sarah Lee
0
193
Member Avatar for exotic_ang

[COLOR=black][COLOR=black][B]hey im lost, so was wondering if anyone would help me. Im doing a program for a DVD rental system. When it comes to searching the rentals by ID, I cant seem to make it show all the DVD's that the customer has rented not only one. I dont know …

Member Avatar for exotic_ang
0
130
Member Avatar for rwagnes

hi, I am using the header file cnaiapi.h. The c files which include it do not compile because await_contact_mutex, cname_mutex, and appname_mutex are undefined. These are defined in the header file as extern HANDLEs. Any ideas? Thanks[COLOR=#808080] [/COLOR]

Member Avatar for rwagnes
0
312
Member Avatar for rwagnes

Hi, I have visual studio 2005 C++ Express Edition Installed. The instructions I have to create a library file are as follows: 1. Create a project 2. Add Header Files to the project 3. Change the Configuration Type on the Properties Menu to Static Library (lib) 4. Still in the …

Member Avatar for rwagnes
0
176
Member Avatar for Maidomax

Hi! I got a simple question. (two actually) I made a game in Flash, but when i want to publish it as an .exe file for burning on CDs, it has that flash player menu on the top, and I can't set it to be full screen. Pls help.

Member Avatar for Maidomax
0
71
Member Avatar for keithh

So here's the question that I've been thinking over for a few hours: MIPS to C. Assume $s3 = i, $s4 = j, $s5 = @A. Below is the MIPS code: Loop: addi $s4,$s4,1 # j = j + 1? add $t1,$s3,$s3 # $t1 = 2 * i add $t1,$t1,$t1 …

Member Avatar for keithh
0
198
Member Avatar for hanifa

Hi this is my first paste... [URL="http://paste.plone.org/12700"]http://paste.plone.org/12700 [/URL][Contains my input.xml and transform.xslt and output file it generated. [URL]http://paste.plone.org/12706[/URL] .. this contains my new input.xml file.. And in here, all the Activitiy's tag attributes are being rewritten as children. And here is the xslt which i tried to write and failed... …

Member Avatar for hanifa
0
89
Member Avatar for amithasija

hhey any body knows how to upload a file or image in database and retrieve it,i know i have to use file column and rmagcik but dont know how to apply them,can anybody tell me step by step implementation. thanx in advance,

Member Avatar for pty
0
129
Member Avatar for itdisc

Hi all, I Just have to retrieve the data from the oracle database n just write the retrieved data to text file.Please Can anybody send me the code? Its very urgent. [IMG]http://forums.devx.com/images/smilies/frown.gif[/IMG] Thanks in advance.

Member Avatar for ajay_tabbu
0
110
Member Avatar for AussieCannon

Hello, I am very new to python (a few days) and am wondering how i should go about generating random gridpoints and comparing them to ones inputted by the user. I am completely lost on how i can get the input of the x and y coordinates from the user …

Member Avatar for vegaseat
0
444
Member Avatar for defience

I'm still new to python and need some help writing a program. I need to write one that runs a *.exe and then checks some timings in it. There are 3 numbers ranging from 0<1000 that are hidden in the *.exe(app.exe). If the script runs the app.exe and then runs …

Member Avatar for vegaseat
0
158
Member Avatar for Goitse

Here is the Code that you required CampKev <% Dim Conn Dim sSQL Dim rsPeople Set Conn = CreateObject("ADODB.Connection") Set rsPeople = CreateObject("ADODB.Recordset") Conn.Open "addresses" sSQL = "select Person_Id, First_Name, Last_Name, Phone_Number from Persons " rsPeople.Open sSQL, Conn %> <html> <head> <title>Connecting TO The Database</title> </head> <body bgcolor = "#FFFFFF"> …

Member Avatar for campkev
0
123
Member Avatar for defience

I'm new to Python and this was written and posted by someone else on another site as a tutorial for a word unscrambler. I thought it was well written and liked the explanations but I tried to use it but keep getting an error message: line 27, in <module> letters …

Member Avatar for defience
0
127
Member Avatar for Shark7

I need to calcualte the scalar product given two lists of numbers... [code]v1=input("Insert the first vector: ") v2=input("Insert the second vector: ") for i in range(len(v1)): v3=v1[i]*v2[i] print v3 [/code] this code will multiplie all the numbers in list v1 and the numbers in list v2 but the result doesn't …

Member Avatar for Shark7
0
355
Member Avatar for kimbokasteniv

I was going through the questions in my study guide for computer science, and I noticed a few blocks of code that contained syntax that I had never used before. My first question is on the ^ operator. What exactly does this do? My second questions is on the use …

Member Avatar for kimbokasteniv
0
137
Member Avatar for Laughs Galore
0
51
Member Avatar for MattEvans

Relevant header definitions are as: [code] class XMLChain { private: Segment root; std::vector<XMLOpen*> chain; Segment * immediate; std::vector<XMLOpen> openers; [/code] The function in question is: [code] void XMLChain::open(std::string tag) { Segment * last_immediate = immediate; openers.push_back( XMLOpen ( tag ) ); XMLOpen * cast_immediate = &(openers.back()); (*last_immediate).setNext( cast_immediate ); immediate …

Member Avatar for MattEvans
0
105
Member Avatar for amishosh

Hi! Even when I use windows versions of C++ compilers (Visual studio or Borland) when I compile my program it opens up in a DOS window. Is VB the only way the program will open up in a windows like window? Thanks, Ami

Member Avatar for fesago90
0
124
Member Avatar for peter_budo

Can somebody please help me to little customize the view of the phpMyAdmin? Curently this is what I [URL="http://www.peterbudo.f2s.com/extra/myAdminC.jpg"]see [/URL] but I would like to have as [URL="http://www.peterbudo.f2s.com/extra/myAdminW.jpg"]this[/URL]. Simple, I don't like options to be displayed as list of links but as tabs. What shall I change in config?

Member Avatar for peter_budo
0
148
Member Avatar for Cudmore

My question today is regarding multidimensional arrays, and synchronization.. I'm working on a client/server project and I'm not sure about the theory of an idea I came up with: I have an array: [INLINECODE]Object[][] myArray = new Object[256][];[/INLINECODE] It is an array of arrays. The length of myArray is 256 …

Member Avatar for Cudmore
0
767
Member Avatar for chris99

What am I doing wrong, I've done it before! [CODE]class Main: def __init__(self, master): self.master = master self.master.title('Role Playing Form V1.0') self.master.geometry('300x250+350+450') self.master.mainloop() self.cmdCreate = Button(self.master, text='Create Character', command=self.create) self.cmdCreate.grid(row=0) def create(self): pass root = Tk() main=Main(root)[/CODE] the button doesn't appear!

Member Avatar for bumsfeld
0
140
Member Avatar for Sarah Lee

Hi All, I want to set two textboxes, where I want to set the first day of current month in one textbox, and todays date in the second text box. How can I get the first day of the current month? Thanks In advance

Member Avatar for Sarah Lee
0
125

The End.