i have created a recursive method that returns the size of a binary search tree, i would like to analyze the running time of my implementation but i dont know how. I know the best case is O(1) if node is null but what about worst case? my researches online offer conflicting information. One source says to imagine the internal stack which makes me believe O(N^2) and another says to break it up into an equation. I feel like the worst case is O(N) as each of the nodes must be accessed in order to return their value but i …

Member Avatar
Member Avatar
+0 forum 8

Hello to all! I made a small project using Netbeans8. I named my project smallCalcApp. And then i add a new JFrame File in my project and in that file I handled events of components which i put on form. When I run that file , it ran successfully and frame appeared on screen and I used my application . but when I run project, it only shows a statement "build successfuly" but no any form appears. Please tell me that how I can run a project in a way that all the GUI files in it also run along …

Member Avatar
Member Avatar
+0 forum 1

well guys, i wanted to try somethng fun in java, so i made a simple form type navigation program.. i can compile this file, bt i cant run it..NOTE: i have no issues in my java software.. import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.util.regex.*; public class Nav2 extends JFrame implements ActionListener { JTextField t1,t2,t3,t4;//Source,Destination,Day or night time JLabel l1,l2,l3,l4,l5,sl,dl,l6;//Enter source,Enter Destination,When do u want to travel,Mode of transport JRadioButton rb1,rb2,rb3,rb4,rb5,rb6;//Train,Bus,Auto,Taxi JButton b1,b2,b3;//Time or Money JPanel p1,p2,p3,panel; ButtonGroup rbg,rbng; public Nav2() { Container con= getContentPane(); con.setLayout(new FlowLayout()); l1=new JLabel("Enter Source:"); l2=new JLabel("Enter Destination:"); l3=new JLabel("When do you like to travel:"); …

Member Avatar
Member Avatar
+0 forum 6

please help how to run a java program on start up.

Member Avatar
Member Avatar
+0 forum 2

Hi Guys I need help in capturing action of running process, forexample i have created a simple application in vb.net in which there is a button when we click on this button then it shows a msgbox, now i want to make a application which will be another application and will capture its mouse click event by attaching to first application and i also want to change the first application behavior, like if it shows msgbox 1 time i want to show this message multiple time like loop, can you guys please help me Regards

Member Avatar
+0 forum 0

i m trying to run a mp3 file on dosbox plateform by c .i put the following code in to the batch file start c:\xyz.mp3 and trying to call this as system("c:/a.bat"), the system funtion is returing 0 but it is not running it. But the same code working well on Cmd . i m using win 7 32 bit..

Member Avatar
Member Avatar
+0 forum 10

Greetings! When I open the outlook web app on my computuer only the most recent email appears. I cannot click on and open any email before the most recent. Then the "Stop running this script?" box comes on and freezes the outlook web app. This computer has Windows XP. Not software savvy, any help would be appreciated! How can I access other emails without the hassle of the "Stop running this script?" box? Thanks! John Jon

Member Avatar
Member Avatar
+0 forum 2

Hi there, I'm just a hobbyist teaching myself python but I am making progress with the help of "Rapid GUI Programming with Python and QT". I have written what is probably a very poorly designed programme which does just about what I want but when it's closed the process continues to run. The steps are - monitor com port for signal, if received display a window. When I close the window though, the process continues to run. I have tried every combination of exit functions I can think of but they either crash python.exe when the window closes, stop the …

Member Avatar
Member Avatar
+0 forum 1

How to find which operating system is running the PC in C++?

Member Avatar
Member Avatar
+1 forum 3

What is the running time for the following recursive function: pubic static int Sum(int [] a, int start, int end) { if ((end – start) = =0) return a[end]; else { int mid = (end + start) / 2; return (Sum(a, start,mid) + Sum(a,mid+1,end)); } } Can someone please explain step by step on how I would figure this out. My attempt is that I only care about the if statement and int mid here (i think). "If" would be a simple n and would "int mid" be log_2n giving a running time of nlog_2n?

Member Avatar
Member Avatar
+0 forum 3

While lunching the application in TOMCAT 5.5 and JDK 1.5 I am getting below exception could some help me in resolving the issue Jul 25, 2012 4:12:50 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:572) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543) at org.apache.jasper.compiler.Parser.parse(Parser.java:126) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1058) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:451) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) at …

Member Avatar
Member Avatar
+0 forum 1

Hello, Is it possible to disable the windows key when the application is running?? Suppose I am running a particular application....and if the user press the windows key or clicked on the windows key on the task bar it shud prompt a message box that user is not allowed to press or click the windows key.... Can anyone help me on this???

Member Avatar
Member Avatar
+0 forum 3

Hi, I am writing a script which will run a process in a while loop, i.e., user will execute `sh test.sh ` and the script will run a set of processes, I want to know how to kill the script which is having a infinite while loop in its contents. Killing a process (say test.out) is done by `pkill -9 test.out` and a script can be killed using `pkill -9 test.sh` But this is possible only when the user has started the script using `./test.sh ` But if the user runs like this `sh test.sh` Then it cannot be killed …

Member Avatar
Member Avatar
+0 forum 4

I am writing an application which calculates profit from 3 column values. The SQL is as follows in vb dataset designer; [CODE]SELECT ID, Sale - (Weight * 20) * (Rate -5) AS Profit From AgencyRegister WHERE (DatePart('yyyy', ArrivalDate) = ?) ORDER BY ArrivalDate[/CODE] I want to add another column of 'Total' that may display running profit an a separate column. I've tried; [CODE] SELECT a.ID, a.Sale - (a.Rate - 5) * (a.Weight * 20) AS Profit, SUM(b.Sale - (b.Rate - 5) * (b.Weight * 20)) AS Total FROM AgencyRegister a, AgencyRegister b WHERE (DatePart('yyyy', a.ArrivalDate) = ?) AND a.ID = …

Member Avatar
Member Avatar
+0 forum 5

the question asked me make a program that would find opens an read a txt file and calculate or display the following. - the number of numbers - sum of all the numbers in the file (running total) -average of numbers in file the .txt file just has 100,200,300,400,500,600,700 each in its own line one after another. im completly stuck on how to find the second two parts. so far i managed to read the file and get it to show the numbers and give a final count of how many there are using a while loop. but everything ive …

Member Avatar
Member Avatar
+0 forum 2

I am new to the c++ programming language and I need help. So I have created the program in the extension .cpp ,but how can I run it, its just text! Is their anyway I could run it as a program from command line or an executable file? Plz help. Thanks to those who spent time in reding this.

Member Avatar
Member Avatar
+0 forum 3

Dear Sir/Madam, I have a small programe created in VB 6.0 and database MS Access. Where user can insert their only name & address and can retrieve the existing records. Just for test, I have kept this programe (.exe file and database file) in the share document of a computer and tried to run from another computer. It was running smoothly (I entered records and display that records too). I have not made setup file when i was tested. Just created .exe file. I want to run this programe in home network that is connected with router. How can i …

Member Avatar
Member Avatar
+0 forum 2

I'm making a program and in one of the part of the program there is this button and for it to do main function it needs to check if the notepad is running. So how can i check if the process is running?

Member Avatar
Member Avatar
+0 forum 26

Hello, I have implemented different sorting algorithms (bubble sort, merge sort, heap sort, etc...) and want to calculate the running time for each one on different sets of data. I'm using Visual Studiois but am familiar with Dev C++ and Xcode on Mac. I used C++. Is there some special command or menu option I can click so that I can record the running time and compare results?

Member Avatar
Member Avatar
+0 forum 13

Hello everybody. I am running windows xp. I was just exploring everything inside gpedit.msc and found an interesting option there. It says something like " Prevent users from running applications " or run only specified applications or something like that. I enabled it and added only a few in its list "notepad.exe", "iexplore.exe" and a few more. But i forgot to add "gpedit.msc" to that list and i closed the group policy editor's window. Now i cannot run gpedit.msc and therefore cannot change this setting. Now there are just 2-3 applications that i am able to run. Is anybody having …

Member Avatar
Member Avatar
+0 forum 2

Hi Guys I need to compile and run a c++ program from java using Process a = Runtime.getRuntime().exec ("g++ -g function.cpp -o function"); Process b = Runtime.getRuntime().exec ("./function"); the problem is that the output I get from the c++ program is not correct but If I compile and run it myself in the command line it works just fine. The problem is Java and i dont know why. Thanks a lot Al,

Member Avatar
Member Avatar
+0 forum 1

k, what i'm trying to do is create a windows service to run in the background to monitor [URL="http://www.vmware.com/products/player/"]vmplayer.exe[/URL] to see if it is running or not. then if it is running, then turn on the various hardware, software, and services it needs/uses to run, and if it is not running, then to turn these things back off. this seems to be the only hump that i can't get over is getting this service to watch for this item and adjust the system accordingly the reason for doing so is that from the time that the PC is booted, 4 …

Member Avatar
+0 forum 0

Hey all, Is it possible in C# to make it so that when a program is run, your program opens up with it? For example, say I went to double click the "Firefox" icon, would it be possible to have my program also open up with it? Basically what I want is to link my program with the execution of another. Would I have to edit registry keys? Any ideas would be greatly appreciated! Thank you all.

Member Avatar
Member Avatar
+0 forum 6

[U]for[/U] i<-1 [U]to[/U] n [U]do[/U] [INDENT][U]for[/U] j<-1 [U]to[/U] n^2 [U]do[/U][/INDENT] [INDENT][INDENT]write(i*j)[/INDENT][/INDENT] [INDENT][U]end-for[/U][/INDENT] [U]end-for[/U]

Member Avatar
Member Avatar
+0 forum 2

hi ... i've just received a client requirement stating that he wants to have an [B]offline capability for his asp.net application[/B] being run on tablet PC'S. The application consists of multiple forms being used for data entry. But due to Internet Connectivity not being there sometimes, they want to [B]cache the input data locally[/B] at that time and [B]later sync up with the server[/B]. The options that we are looking into right now are [B]IE Plugins, activex controls and Google Gears[/B] ... I am relatively new to the concept and alternative solutions. Can anyone please let me know if any …

Member Avatar
+0 forum 0

Hey guys I have an old school macbook, it has caused me many problems but this current one is probably the most annoying: The fan is CONSTANTLY on like I can't make it stop, this is either with some apps or WITH NO APPS RUNNING. sorry for the caps I am just, as you can probably tell, a bit annoyed secondly, the battery life is FU##D I mean it used to last like 3 hours, only a month or so ago now It has just gone from 100% to 44% in about half an hour And it's really hot, so …

Member Avatar
+0 forum 0

I found this on a blog and it really is interesting to see. The blogger developed a flash counter that tallys the amount of activity of various social media types starting with the moment you start looking at it (i.e., number of blog posts, number of tweets, number of new facebook accounts, etc). The author explains how it works and what inspired him to do it. It really is amazing to see. [url]http://www.personalizemedia.com/garys-social-media-count/[/url]

Member Avatar
Member Avatar
+1 forum 1

The End.