64,152 Solved Topics
Remove Filter ![]() | |
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......... | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi Guys I'm new in ASP and Access and I 'm trying to create a login page. Please Help!! :confused: Thanks in Advance | |
[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- … | |
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); … | |
How can I best find out how many times a word appears in a text? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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.*; … | |
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 … | |
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 … | |
[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: … | |
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. | |
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 … | |
I know that you can do integer calculation in Python with astronomically large numbers. What is the precision limit when using floats? | |
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? | |
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 … | |
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 … | |
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] { … | |
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: … | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
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 - … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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.... | |
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 … | |
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! | |
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 … | |
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 … ![]() | |
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 |
The End.