Member Avatar

I'm really having a hard time understanding this stuff and all the examples I find online just aren't starting from a place that makes sense to me. I missed my lab last week and the prof suggested those of us who missed it should go through the lab anyway because this stuff is going to keep coming up. Unfortunately the answers to the lab haven't been posted so I can't even reverse back the answer. So here's a question from the lab that I'd really appreciate some help with. 3) Consider the the algorithm given below and determine its time …

+0 forum 0
Member Avatar

Hi, how can I get inherited classes in java api , after parsing class .. For example: Public class h extends C ..... and C extends B and B extends A.....andso on... How can I get these inheritance classes (A, B, C), I parsing class h using api parser: JavaClass javaclass and I put the path of class h? Now , how can I get the inherited classes from main class using this parser ......

+0 forum 0
Member Avatar

I have a jsp page in which I add users and display users from the database . so there are two servlets for this functions, how do I invoke both this sevlets(controller) at the same time ?

+0 forum 0
Member Avatar

Hello I have a rest web service which implement oauth2.0 . Now I have my web application with a login which currently using spring security. I want to use the same login to authenticate with the rest web service using oauth2. My question is: Does this tutorial is suitable for me? [Click Here](https://raymondhlee.wordpress.com/2014/12/21/implementing-oauth2-with-spring-security/) I just want to authenticate my login with the rest webservice. My web application is using hibernate/spring. Please advise. Thanks

+0 forum 0
Member Avatar

I am trying to build a web application that can also run on mobile phones. Is the html code generated by imgmap_desktop can be run on both web and mobile? or rather web responsive type?

+0 forum 0
Member Avatar

I had created my Qt C++ application and now I am thinking to provide it as a plugin or as library in Eclipse. I know there is CDT plugin, but I don't won't to write my code again. Is there any way to achieve this? Snippet for QPushbutton in qt I have like as follow:- LibTest::LibTest() { QPushButton pb; pb.setText("Hello World !"); QObject::connect(&pb,SIGNAL(clicked()),&pb,SLOT(called())); } void LibTest::called() { qDebug()<<"It was called."; } here called() is a slot function and clicked() is a signal. I want to integrate as plugin or perspective in eclipse? Is there is a way to use SWT …

+0 forum 0
Member Avatar

Hello all, I need help with creating grammer for Antlr that would find class, variables, methods and relationship like is-a and has-a that would be later used for generating UML class diagram. Thanks in advanced.

+0 forum 0
Member Avatar

I am writting a code to show the number of ways we can pick k # of objects from n total # of objects, and order them without repetition(n choose k). I am given the recrusive for public static long tough(int x, int y) { if (x < y) return tough(y, x); else if (y <= 0) return 1; else { if (x>y) return tough(x-1, y) + tough(x-1, y-1); else return tough(x-1, y-1);}} We are then asked to write a NON-recursive format, which I already have. My only question is, due to a statement the professor said, is there anyway …

+0 forum 0
Member Avatar

Hi I am using razorflow chart software to create a dashboard, this works perfectly on my dev server(Locally) but when I upload it to hosted server(Web) it does not load properly. https://www.razorflow.com/ I get the following errors: value is not a number Uncaught TypeError: Cannot read property 'split' of undefined value is not a number Uncaught TypeError: Cannot read property 'split' of undefined value is not a number Uncaught TypeError: Cannot read property 'split' of undefined value is not a number Uncaught TypeError: Cannot read property 'split' of undefined Uncaught TypeError: e(...).find(...).addBack is not a function Uncaught TypeError: e(...).find(...).addBack is …

+0 forum 0
Member Avatar

Hi All, I have a situation where i need to retrieve parentpath from childname in JFace Checkboxtreeviewer. By using below code, i can get both the path seperately. getCheckedElements() - child elements getExpandedTreePaths() - parent elements How i can map childelements with parent? here i get both seperately. When i select multiple child elements i cant map which 'child' maps with which 'parent'. Or is there any new options to get both child and parent path? Kindly help me in this situation.I tried google but cant find the answer. Thanks in advance.

+0 forum 0
Member Avatar

Please help me with how i may receive an sms to my java application using ozeki. I have used sample code that i got from http://www.ozekisms.com/index.php?owpn=584 , I used that sample code and was able to send sms. Using the same code how may i receive an sms so that the sms (text and the sending number) are available to the java application. I want to be able to use the text to query a database (MySql) and have the result sent back the the requesting number.

+0 forum 0
Member Avatar

I have followed all the tutorials, but still I have a problem that I can't get an object from a form to the controller using Spring MVC. What might be the case? I am using Thymeleaf to format my jsp pages. <!DOCTYPE HTML> <html xmlns:th="http://www.thymeleaf.org"> <head> <title>Getting Started: Handing Form Submission</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <h1>Form</h1> ${priceIncrease.getMessage()} ddd <form action="" th:action="@{/increaseprice}" th:object="${priceIncrease}" method="post"> <input type="text" th:field="*{message}" /> <p><input type="submit" value="Submit" /> </form> </body> </html> package com.springapp.mvc; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import store.service.PriceIncrease; import org.apache.commons.logging.*; @Controller public class PriceIncreaseFormController{ protected final Log …

+0 forum 0
Member Avatar

I am creating a couponing app where coupons are stored in a database and compared to local ads to let users know when to use the coupons. I have created a database that holds all of the coupons and also one for the user's personal library. I am having difficulty in getting the library to show in a gridview. the code for the gridview adapter, the database helper, and the activity code are all below as well as the error that I am recieving. please help LibraryListener.java public class LibraryListener extends Activity{ GridView grid; private static final String TABLE_NAME = …

+0 forum 0
Member Avatar

Hello , When we do an XOR operation between two rectangles ( one is completly inside of the other ) output in GPC & Clipper is something like , exterior Rectangle + a Hole ( which is interior Rectangle ) for my application output has to be a set of polygons WITHOUT holes , its like decomposing a polygon with a hole Can you tell me if there is any library which can do this ? Thanks - Nataraja G

+0 forum 0
Member Avatar

Hi, can anyone pls help to understand why its throwing class not found error, i am trying to learn how JWS works. i just followed this blog, though every thing looks ok.Attaching the files as well. http://examples.javacodegeeks.com/java-basics/web-start/java-web-start-getting-started/ Pallab

+0 forum 0
Member Avatar

I am trying to validate if this is a BST or not and return a true or false. I believe I have the code right but i cannot get it to print properly if I could get any help how to fix my problem it would be greatly appreciated. Test Class ` import java.util.Stack; public class Test { /** * @param args the command line arguments */ public static void main(String[] args) { BinaryTree tree = new BinaryTree(); tree.insert(44); tree.insert(17); tree.insert(88); tree.insert(8); tree.insert(32); tree.insert(65); tree.insert(97); tree.insert(28); tree.insert(54); tree.insert(82); tree.insert(93); tree.insert(21); tree.insert(29); tree.insert(76); tree.insert(68); tree.insert(80); PrintTree.printTree(tree); } public static int lastValue …

+0 forum 0
Member Avatar

Dear DaniWeb community, I am not from computer science background (math guy) but I am interested in machine learning and apache mahout. I have used Mahout CLI and recently looked at development environment and wanted to ask you: while running mahout CLI, we do not have dependencies but in development environment we need to add dependencies like logging tool SLF4j or log4j, etc... not just logging tool dependencies but also apache commons math and so many other dependencies. How do we decide what is required and what is not?

+0 forum 0
Member Avatar

need help in programing application based ELCTRE I method , problems with input using jtable .

+0 forum 0
Member Avatar

How can I rewrite this with java config? <int-kafka:outbound-channel-adapter id="mainOutboundChannelAdapter" kafka-producer-context-ref="kafkaProducerContext" channel="mainOutboundTopicChanel"> </int-kafka:outbound-channel-adapter>

+0 forum 0
Member Avatar

Hi, I'm using multiset intersection function inorder to find the similar characters located in two sets. This is working good. I wanted to know if I can introduce a wild card in this intersection function such that if it finds the wild card it will ignore or consider as a similar character to that of the query. Any suggestions would be really helpful. thanks a lot

+0 forum 0
Member Avatar

Below is the code i am using to create dropdown using listfields.In this i am able to create dropdown with hardcoded data binded to listfields with no Problem,but when i bind data from webservice when i clicked on horizontalfield(dropdown),first it shows the null pointer exception(White screen),by clicking middle button of simulator i am able to go back to dropdown design screen, where datas get binded in listfields.My question is why it shows null pointer exception even when the datas are binded to listfield. int index = -1; Object choice[]; Vector Sales = new Vector(); Vector SalesID=new Vector(); String SalesData; ListField …

+0 forum 0
Member Avatar

Hi everybody; I am a beginner in the BPEL development. I need tutorials that can help me to implement the parsing of a BPEL process into graph under netbeans 6.7 (the API that should be installed etc ( I have installed the JDOM API). I will be grateful if you can help me.

+0 forum 0
Member Avatar

I'm trying to implement a MiniMax algorithm with alpha/beta pruning. Totally stuck and can't see where I'm wrong. The class MiniMax contains a State and an Action. The method getAction returns an Action (supposedly the best action to take). The Game object has two methods, isTerminal returns true if the state is an "end state", ie there are no more children to that state. getUtility returns the value associated with an end state. I'm trying to decide wheter it is Max or Min turn by using the counter round. Currently the algorithm doesn't return the correct action, and at this …

+0 forum 0
Member Avatar

Hi, I'm trying to make a label visible by clicking on a button. The following code will make the label visible, but will disappear in less than a second. I'm assuming its because the form is getting submitted in the java script, so the page is getting refreshed? Is there a different way of doing this, say in the JSP? <body> <% PumpController pc = new PumpController(false); %> <% if (request.getParameter("buttonName") != null) { if(request.getParameter("buttonName") == "Pump is On!") { pc.setPumpStatus(true); } else { pc.setPumpStatus(false); } } %> <form name="overrideForm" method="get"> <input type="hidden" name="buttonName"/> <input type="button" name="override" value="Override" onclick="changeState(this.value)"/> <input …

+0 forum 0
Member Avatar

We are creating a work-flow in which a submitted form-data needs to be approved by dynamic number of people based on the designation of user who submitted it. So if User1 has submitted a form and there are 3 levels in between, before it goes to final approver Uuser5, the workflow should route it to User2 , User3 and User4 in sequence before it goes to User5. Now if User4 submits the form then it directly goes to User5 for final approval. So the number of approvers are decided by two factors 1) Designation on Submitter and 2) No of …

+0 forum 0
Member Avatar

import java.awt.Frame; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.media.opengl.*; import javax.media.opengl.awt.GLCanvas; import javax.media.opengl.glu.*; import com.sun.opengl.util.Animator; import com.sun.opengl.util.FPSAnimator; public class Object3D implements GLEventListener, KeyListener { GLProfile glp; GLCapabilities caps; GLCanvas canvas; GLU glu; float rotX = 0.0f; // Rotate screen on x axis float rotY = 0.0f; // Rotate screen on y axis float rotZ = 0.0f; // Rotate screen on z axis float X = 0.0f; // Translate screen to x direction (left or right) float Y = 0.0f; // Translate screen to y direction (up or down) float Z = 0.0f; // Translate screen to z …

+0 forum 0
Member Avatar

i want to record voice then play it at the same time but when i use the below code i got delay and echo of the voice and some noise i will be grateful for any help int bufferSize = AudioRecord.getMinBufferSize(frequency, channelConfiguration, audioEncoding); AudioRecord audioRecord = new AudioRecord( MediaRecorder.AudioSource.MIC, frequency, channelConfiguration, audioEncoding, bufferSize); short[] buffer = new short[bufferSize]; AudioTrack audioTrack = new AudioTrack( AudioManager.STREAM_MUSIC, frequency, channelConfiguration, audioEncoding, bufferSize, AudioTrack.MODE_STREAM); short[] audiobuffer=new short[bufferSize/4]; int buffersizeno=bufferSize/4; audioRecord.startRecording(); audioTrack.play(); int r = 0; int k=0; while (isRecording) { int bufferReadResult = audioRecord.read(buffer, 0, bufferSize); for (int i = 0; i < bufferReadResult; i++) …

+0 forum 0
Member Avatar

So they dropped ODBC on Java 8. Thats somewhat a problem for me. I searched to find alternatives and UCanAccess is what looks like to be the most popular. But I was wondering if there are alternatives that are better or equal to UCanAccess?

+0 forum 0
Member Avatar

Hi.. I’m trying to create circular menu bar,but my menu bar is nearly similar to tympanus circular menu bar(visit [Click Here](http://tympanus.net/Tutorials/CircularNavigation/index2.html)) but in tympanus if we want menubar we must click open/menu button I want menu bar(fixed) to be display without any any clicking and instead of button i need to have website logo there(non button) version for code(visit [Click Here](https://github.com/SaraSoueidan/circular-navigation))

+0 forum 0
Member Avatar

At my work we have an internal webite that only uses Java 6. 7 and up will crash the site locally. I am aware that it really needs to be update for many reason. Does any one know of a way to launch IE to use an older version of Java programmatically? Currenttly we block the upgrade and instruct people to never update java but it still happens I ideally want to make a very small app that will launch the site using a webbrowser this way when the app is closed I can reset any changes made by the …

+0 forum 0

The End.