64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for vineelap84

Hiiiiiii everyone....... iam learning java newly......... so i have doubt in writing this pgm can anyone pls tell me out......... "can we write a java program which calls the command prompt" byeeee vineela.........

Member Avatar for vineelap84
0
89
Member Avatar for mosarie79

I just started my first web design job and am a little confused. The company I am working for uses templates to design the e-commerce website. The developer is able to add more code to the templates to further customize the site. The templates seem to use VB for the …

Member Avatar for MattEvans
0
299
Member Avatar for olams

Hello Everyone, My name is olams and i am new to this website and C++ in general. I am having real difficulty in this class. Can someone please tell me how to find the number of digits in number using Visual C++. Net or C++. I really need help. Any …

Member Avatar for olams
0
145
Member Avatar for volscolts16

I have left out something here or done something wrong?? Background: We are supposed to implement a class ExpApproximator. It uses the power series and keep adding values until a summand (term) is less than a certain threshold. At each step, you need to compute the new term and add …

Member Avatar for jwenting
0
130
Member Avatar for jwintersmith

I recently discovered that Python list assignment does not work quite the way I expected it to, as illustrated below: >>> a = [1,2,3] >>> b = a >>> b.append(4) >>> b [1, 2, 3, 4] >>> a [1, 2, 3, 4] >>> I was expecting this to create a …

Member Avatar for vegaseat
0
112
Member Avatar for rbinc

I have the following lines of code for an assignment. What I don't understand is why, when I uncomment the first few println's before the user prompt in main, the input taken from the function readint seems to capture the first println and not what the user types in. If …

Member Avatar for rbinc
0
182
Member Avatar for Bamaman37

Hi, I'm working on a project, but I am lost in this class. I'm taking this distant ed Java class, I work 50 hours a week, and I live 2 hours from the school. Needless to say, I can never get in touch with the teacher. Anyways, I'm trying to …

Member Avatar for Bamaman37
0
110
Member Avatar for bops

As you may already know im working on a program that analyses a file given by the user, i want to create a word count feature. How would i go about doing this, i mean how would i distinguish what is exactly is a word and be able to incorporate …

Member Avatar for Narue
0
181
Member Avatar for volscolts16

I keep getting cannot find symbol variable i, when I run?? Also I have another posting that is up, how do I mark it as solved??? Here is the dilemma: /** Program to compute the first integral power to which 2 can be raised that is greater than that multiple …

Member Avatar for peter_budo
0
91
Member Avatar for volscolts16

This is a lab project we are working on, and I am at a standstill. I am in a beginner Computer Science course, for background purposes, so please don't get too technical. Any help would be greatly appreciated. Thanks [COLOR=#000000]1. [/COLOR][COLOR=#000000]A variable that counts the iterations of a loop is …

Member Avatar for volscolts16
0
263
Member Avatar for Blujacker

i have problem with this code: [CODE] def __init__(self,parent): data = [(1,2), (2,3), (3,5), (4,6), (5,8), (6,8), (10,10)] self.okno=wx.Frame(None,title="Graf",id=-1) sizer=wx.BoxSizer(wx.HORIZONTAL) ram=wx.Panel(self.okno) client = plot.PlotCanvas(ram) line = plot.PolyLine(data, legend='', colour='pink', width=1) gc = plot.PlotGraphics([line], 'Line Graph', 'X Axis', 'Y Axis') client.Draw(gc, xAxis= (0,15), yAxis= (0,15)) sizer.Add(ram,1,0,wx.ALL) self.okno.SetSizer(sizer) self.okno.Layout() self.okno.Show(True)[/CODE] why plot …

Member Avatar for vegaseat
0
262
Member Avatar for Goitse

Hi Guys I'm new in ASP and Access and I 'm trying to create a login page. Please Help!! :confused: Thanks in Advance

Member Avatar for katarey
0
555
Member Avatar for Blujacker

[code] from Tkinter import* Label(text=u'\u2208').pack() mainloop() [/code] i am trying to do that same in Wx, but i always get UnicodeError: [code] import wx okno = wx.App(0) frame=wx.Frame(None) wx.StaticBox(frame,label=u'\u2208') frame.Show(True) okno.MainLoop() [/code] and the eror is: [code] Traceback (most recent call last): File "C:\Documents and Settings\Blu\Plocha\aa.py", line 4, in -toplevel- …

Member Avatar for Blujacker
0
207
Member Avatar for joezyz

Hello everyone, I have a MSSQL db with PHP front end. The data in the table is similiar to: "Two spaces" with 2 white spaces in the middle. When I use this code: [code] $sql = "select Name FROM Name_TBL WHERE Number = '$Num"; $rs = mssql_query($sql); $RT = mssql_fetch_array($rs); …

Member Avatar for joezyz
0
375
Member Avatar for sneekula
Member Avatar for vegaseat
0
118
Member Avatar for livingsword

this is the code that i managed to write after reading for a while. [code] CubicCurve2D cubic = new CubicCurve2D.Double (20.0, 200.0, 200.0,270.0, 30.0,30.0, 250.0, 170); Graphics2D g2 = (Graphics2D) g; g2.draw(cubic); [/code] and this is the output, [IMG]http://img221.imageshack.us/img221/7728/exampletr0.png[/IMG] Now, like u have seen , everything works fine, i get …

Member Avatar for livingsword
0
144
Member Avatar for earlyriser

Hello I'm trying to assign a value from a string via some pointer, but I got an error and I cannot figure how to solve it. Do you have an idea? I would really help me. The problematic line is marked between ********* Thanks. [CODE]// reading a text file #include …

Member Avatar for ~s.o.s~
0
290
Member Avatar for itajit

Hi Im usig SWIG with Python and facing problem in compiling the wrap file genereted by the SWIG. The error is can not open include file Python.h.And hence the object file of wrap file can not be generated, so plzzzzzzzz help me by suggesting the steps for the prob I …

Member Avatar for vegaseat
0
116
Member Avatar for vinod_javas

Hey guys.., Plz Help me out for this..... Is there any provision.... for giving security to a jar file.....i can easily unzip all the files from jar using winrar... and we can easily get .java file from .class so i want to know is ther any way to provide security …

Member Avatar for jwenting
0
164
Member Avatar for RisTar

hi , im pretty new to computer science and alose to this community . i have a problem that im trying to solve and hope you guys can help me with it . im trying to create my own version of the function "atoi" that can be found in stdlib …

Member Avatar for RisTar
0
251
Member Avatar for avik1983

i have a simple text file as input.i have to print that file in paragraph format.whenevr it finds "\n" in the input text it should start printing in next paragraph in output file.also a fixed amount of space should be given before start writing in every paragraph. the input and …

Member Avatar for avik1983
0
226
Member Avatar for mr.sweetchuck

Hi I am trying to write a simple J2ME application, (I've only started learning it), and am getting the following error: Unable to create MIDlet null java.lang.NullPointerException at com.sun.midp.midlet.MIDletState.createMIDlet(+29) at com.sun.midp.midlet.Selector.run(+22) I don't know what's wrong. Any suggestions would be greatfully received. My code is as follows: [code] import javax.microedition.midlet.*; …

Member Avatar for vinod_javas
0
808
Member Avatar for tomhughes

Hi all, I'm just learning how to delete records from a test table but I'm having some problems with it. I'm not sure exactly but it looks like it is deleting the last row from the table no matter which record is clicked on. It also appears that it is …

Member Avatar for jblacdao
0
80
Member Avatar for donaldunca

I have a question: I have a file named "data.inp". This file have numbers: 6 3 5 4 5 2 5 3 1 5 8 7 9 2 5 6 3 5 8 4 6 If I want more line of numbers, I will add numbers. But I don't know …

Member Avatar for donaldunca
0
231
Member Avatar for n.aggel

[code] enum MenuOptionInitial { TEST_ONE = 1, TEST_TWO, TEST_THREE}; switch(selection) { case TEST_ONE: //.... case TEST_TWO: //.... case TEST_THREE: //.... } [/code] the problem is that i want to have another selection base on other options [code] i.e. enum MenuSecond { TEST2_ONE = 1, TEST2_TWO, TEST2_THREE}; switch(another_selection) { case TEST2_ONE: …

Member Avatar for n.aggel
0
324
Member Avatar for mr.sweetchuck

Hi, I am writing a little GUI application and I want to set them up, so that they have a Windows look and feel. So far I can't seem to find anything workable.

Member Avatar for mr.sweetchuck
0
93
Member Avatar for peter_budo

yay this first time that I develop something larger ;) My problem: main method display a frame with buttons where you choose what function/action you want to perform. Once you press a button I want the main window become invisible and windows with option for function to become visible. So …

Member Avatar for peter_budo
0
118
Member Avatar for sneekula

I know that you can do integer calculation in Python with astronomically large numbers. What is the precision limit when using floats?

Member Avatar for vegaseat
0
165
Member Avatar for sneekula

I know you can get the present time this way: [code]import time now = time.asctime(time.localtime()) print now # Mon Feb 19 10:41:32 2007 [/code]How can I make sure that 'now' does not fall on our lunchtime break, let's say 11:30AM to 12:45PM?

Member Avatar for sneekula
0
161
Member Avatar for fonzali

hi , thanks for the code , I have changed it a little bit , I have also added two buttons (+,-) I have written the code for (+) but it does not work , can you tell me what the problem is , the last lines which are commented …

Member Avatar for sneekula
0
161
Member Avatar for aot

I've been having a lot of trouble with the [inlinecode]after[/inlinecode] method. What I want to do is show a series of images at the push of a button/press of a key -- each image should appear for 500ms, then be replaced by the next image, which should go on indefinitely …

Member Avatar for Ene Uran
0
115
Member Avatar for cassyjack

Hi, Im using Radio Buttons. What I want to do is once a radio button is selected. I want to Redirect/Open another Page. Cant seem to get it to work. This is my line of thought can some one point me in the correct direction? [CODE][COLOR=#0000ff] [/COLOR] void[COLOR=#000000] Page_Load()[/COLOR] { …

Member Avatar for cassyjack
0
139
Member Avatar for vasudha k

i have a small problem in the jsp code i have written "to send the data from form to database". The table in the database has a primary key field whose values must be generated automatically. so, i have created a sequence named t_seq and have written it like this: …

Member Avatar for vasudha k
1
111
Member Avatar for Duki

Hey guys, I need help again :sad:. I'm doing really well in the class, it just seems like these past couple assignments have been really rushed (i.e., we went over chapter 5 the day after I finished reading chapter 4 =/). I'm getting sort of discouraged, because up to now …

Member Avatar for Duki
0
172
Member Avatar for nschessnerd

Hey, so I get a Driver error when I try to connect to my local mysql db. My code is in a servlet as follows [code] Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection con=null; Statement smt=null; con=DriverManager.getConnection("jdbc:mysql://localhost:3306/sql?user=webusr&password=pass"); [/code] Thanks M

Member Avatar for nschessnerd
0
124
Member Avatar for n.aggel

hi, to get the current time you use this statement: [inlinecode] time_t now = time(0); [/inlinecode] i was wondering how can i check the time stored in this variable if it falls in a specific time interval, i.e. between 5 and 6 am. I am thinking one way to do …

Member Avatar for Ancient Dragon
0
153
Member Avatar for EnderX

I am currently responsible for a set of server units. Recently, the group of users working with one of these units informed me that they were having problems with a php-based report generating program. I did not write the program; my predecessor did. I did manage to track down the …

Member Avatar for EnderX
0
391
Member Avatar for nagramana

It is possible to drag and drop an mailitem from Outlook to Explorer or MSWord or desktop. In the same way Is It possible to drag to C# Windows Application? Ramana

Member Avatar for shyamkishore
0
359
Member Avatar for M40

Hi. I'd like to ask you another question. I read a lot of articles about the topic but I'm still not very sure how to deal with the following problem. I want to design a database that contains the properties that a real estate agency offers. The problem is - …

Member Avatar for M40
0
1K
Member Avatar for jitender_jitu

hi I m gettting this error java.lang.NoSuchMethod , i hv tried but not able to get the answer, I m using one method that is in diffrent class and that class has public static void main(String[] args) { } Plz provide me wih solution. Jitender

Member Avatar for peter_budo
0
135
Member Avatar for Matt Tacular

I have an image being displayed in a Tkinter window. I need a way to add letters to the image in certain spots depending on what is done by the user. Example: if button 1 is pressed, the peoples names appear over their heads, but I can't just switch the …

Member Avatar for mawe
0
3K
Member Avatar for ryy705

Hi, I have been trying to learn how to create web services for last few weeks. In the process I learned about xml, mySQL, JDBC, servelets, and javabeans. At this point, if you give a specific task such as 'get price for a certain item from the database and display …

Member Avatar for ryy705
0
92
Member Avatar for tinie

I have read that iterators are used to traverse through the elements of container classes. If I wanted to use iterators to move through elements of a 2d vector, how am I going to declare it and use it? Maybe what I said was not too clear, let me rephrase …

Member Avatar for Narue
0
4K
Member Avatar for Acolyte

Hello, I have a simple script with 2 buttons positioned vertically within a sizer on a panel. A button-click event attached to the top button changes the height of the top button. However, even though the height of the top button changes, the height of the bottom button does not …

Member Avatar for Acolyte
0
89
Member Avatar for vinod_javas

Hey buddies.., I m developing some project using java swing... in that I got a problem like......if i use timer thread in label means i couldnt perform any other action in that panel like button click event and all.... it becomes too slow in action....

Member Avatar for vinod_javas
0
150
Member Avatar for Bomber686

Hi all, I have this code [CODE]Option Explicit Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hkey As Long) As Long Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal …

Member Avatar for Bomber686
0
885
Member Avatar for koocachoo

I am looking for a flash gallery similar to the one on Madonna.com The link is [URL]http://www.madonna.com/taggingproject.html[/URL] Can you help me with that? Thank you so much!

0
110
Member Avatar for stupidenator

Hi everyone, I am still fairly new to Oracle and SQL. I have two tables with the same information in them. Table1 has the same columns as table2. The differnce between them is the date column. Table1 has 2005 records while table2 has 2006 orders. I am trying to write …

Member Avatar for g.prabu
0
185
Member Avatar for crazynp

Hi, I am building three websites. The first site has a mysql database with necessary contents for two other sites. The two websites should show the content stored in the first site's database, is it possible without using xml? or is xml the best way or is there any other …

Member Avatar for Rhyan
0
239
Member Avatar for amt_muk

Hello friends, I'm trying to write a program to check the status of a process (specified by its process-id), ie, the process is presently running or not. Can you pls give me some idea to solve it? Thanks in advance. Amit

Member Avatar for amt_muk
0
124

The End.