64 Discussion / Question Topics

Remove Filter
Member Avatar for bibiki

Hi there, I am having difficulties with integrating [datatables](http://datatables.net/). Somehow, my data is being lost/weirdly modified when putting it in my response variable. foreach($aaData as $aData) echo "-".$aData."<br>"; foreach($aaData as $aData) $response['aaData'][] = $aData; My first foreach loop outputs data, and what I see is what I expect. However, when …

Member Avatar for bibiki
0
223
Member Avatar for bibiki

Hi guys, I am using tinyMCE editor. In my textarea, I want to let user type some html like <table></table> and store that in db just like that, <table></table>. However, what I am getting is: &lt;table&gt;&lt;/table&gt; Now, if I go to the edit form for the item that contains that …

Member Avatar for bibiki
0
986
Member Avatar for bibiki

hey there, I am looking at a maven project that makes use of another maven project. say project A and project B. In context.xml in project A, I see these two lines <value>classpath:oneFile</value> <value>classpath:otherFile</value> I have been trying to figure out what is the actual value of classpath, so what …

Member Avatar for bibiki
0
187
Member Avatar for bibiki

hey there, in a project I am involved, someone put a test class in main code. eclipse would not find the bug but mvn, not that in eclipse, would report a compile error, and we found the bug. because of that, I wanted to build my new maven project without …

Member Avatar for peter_budo
0
173
Member Avatar for bibiki

Ok, I am trying to build a jar file and I cannot seem to find my way around. I have attached an image to this thread to show my directory structure. Now, I am navigating to my MultiProjectManagement directory and creating my manifest.txt file with: echo Main-Class: multi.project.management.panels.ProjectListPanel > manifest.txt …

Member Avatar for bibiki
0
185
Member Avatar for bibiki

hey there, I am working on this project where I need to retreive merchant objects and their corresponding number of failed transactions. In pure SQL, I'd just write : "select merchant_id , count(merchant_id) from Transactions where status = 'failed' group by merchant_id" however, the only way I managed to write …

0
86
Member Avatar for bibiki

Hey there, I have a question regarding the builder pattern that I need someone with more experience to clarify for me. I have this User class that has an inner, public static Builder class that has the same fields as User as well as the corresponding setter methods. Now, the …

Member Avatar for bibiki
1
161
Member Avatar for bibiki

hey there, I have created this simple app that makes use of a Robot instance. It is a network app that I control using telnet. I have tried it in two different computers. It works fine. However, in one of my computers, I manage to start my robot app through …

Member Avatar for bibiki
0
140
Member Avatar for bibiki

hey there everyone. I hope you're all well. Alright, I am working on testing a project using Selenium. I know that this is a Java forum and not a Selenium one, but I am used to using this one so I am starting here. Plus, I am very confident that …

0
76
Member Avatar for bibiki

Hey there, I need help with writing a query so I figured I'd ask here. Let me thank you in advance for your answer. I need to see how often a value inside a certain column appears in a table. Say for example I have a table Person, that has …

Member Avatar for bibiki
0
164
Member Avatar for bibiki

hey there, I have two classes with a one-to-many relationship. For ilustration: public class Customer { Business business; Date created; } public class Business { } Now, when I do the following: new StringBuilder().append("SELECT business FROM ").append(Customer.class.getName()) it works perfectly fine. However, when I include filtering based on created field …

Member Avatar for bibiki
0
142
Member Avatar for bibiki

Hello everyone, I am puzzled... when I run a JUnit test, there is no main method in the class and it still runs. Alo, a java/maven web app does not have a main anywhere. My assumption is that it is hidden somewhere on some class I somehow extend or something. …

Member Avatar for bibiki
1
128
Member Avatar for bibiki

Hey there, I have a jsp page and a checkbox inside it: <input type="checkbox" name="some" onchange="test()">Check me</input> I also have this function: function test() { out.println("checkbox checked status changed"); } I want the function test to be invoked every time I check/uncheck my checkbox. It is not working. Since I …

Member Avatar for bibiki
0
158
Member Avatar for bibiki

Hey there, I need help with a query. The typical situation is like this: I expect, say, 1000 rows out of a query that is based, say, on lastName column. One column is, say, firstName. I know I only have like twenty unique names that occur on multiple rows. I …

Member Avatar for bibiki
0
146
Member Avatar for bibiki

alright, I have been aware of private, protected, and public access modifiers but just this week I discovered that there is also the default access modifier in Java. In case none of the three p-- modifiers is mentioned in a method header or field declaration, they seem to have the …

Member Avatar for JamesCherrill
0
160
Member Avatar for bibiki

Hey there, I have the following code: int[] x = new int[7]; System.out.println(x.lengnth); x.length = 10; System.out.println(x.length); Of course, line three causes a "cannot assign a value to final variable length". However, line one does assign seven to that variable, length. Now, I have written a Testing class where I …

Member Avatar for bibiki
0
915
Member Avatar for bibiki

Hey there, I have these three tables: A, B, and C. A has a one-to-many relation with both B and C. Right now, what I am doing is: I run a select query on A. I put the results on an array, lets say aArray. For each row in the …

Member Avatar for nduduzo
0
286
Member Avatar for bibiki

hey there, I am trying to set up tomcat on my computer (I am so new to this, I am not even sure I am explaining my problem correctly.) I was told to install XAMPP. I did using the installer that appache's web site offers. It says that the installer …

Member Avatar for mahadeb
0
2K
Member Avatar for bibiki

I believe the title of my thread explains what I am trying to do... I have a .class file, I need to look at the code has generated the .class. is this possible, and if yes, can you tell me how?

Member Avatar for stultuske
0
231
Member Avatar for bibiki

Hey there, I am trying to build an application that listens to my mouse. once I click on my panel, it reads the x, y coordinates of the point I clicked on. Second time I click the panel, it reads the x, y coordinates of this other point and draws …

Member Avatar for NormR1
0
154
Member Avatar for bibiki

hey there, I have some images that I want to use instead of checkboxes in an application I am building. The images consist of two images. Yes, the two images inside an image are the same except for the background color. One color would indicate when the option the image …

Member Avatar for JorgeM
0
78
Member Avatar for bibiki

Hey there, the following is what I get when I perform a typical query on my database: +--------+----+---+---+----------+ | length | id | l | p | username | +--------+----+---+---+----------+ | 50 | 12 | 1 | 1 | bibiki | | 50 | 12 | 1 | 2 | …

Member Avatar for bibiki
0
166
Member Avatar for bibiki

hey there, as part of my application, I build an array of arrays. So, what I have is this: [CODE] $mainArray = array(); $mainArray = $somearray;//as built with results from a query $mainArray = $someOtherArray;//built same as above //I want to iterate: foreach($mainArray as $array) { foreach($array as $dataArray) { …

Member Avatar for bibiki
0
112
Member Avatar for bibiki

hey there, I need an idea on how to store some information in a database. Let us assume that I want to build an application that allows a user to record what bars he visited each day. The number of bars is variable, and a user typically visits more than …

Member Avatar for bibiki
0
142
Member Avatar for bibiki

hey there, I am trying to test strings using regex to make sure that the string may represent a monomial. that is, it must be 123123213x^213123. I am having difficulties to find any helpful information on how to test for ^. I am trying this: [+|-][0-9]*[.][0-9]*[x\^]? but I get a …

Member Avatar for bibiki
0
116
Member Avatar for bibiki

Hey there, I have already built my system to log in but I am having difficulties in proceeding with the new panel I want to show after log in is successful. This is how I'm doing it: I have built different panels for each use case of my app. So …

Member Avatar for bibiki
0
123
Member Avatar for bibiki

Hey there, I am building a small database app where I allow users to input and retrieve information in and out of database. As part of my application I have this table courses and a java file Course.java that models a Course object. My Course objects have field variables courseID, …

Member Avatar for JamesCherrill
0
115
Member Avatar for bibiki

Hey there, I am trying to build a small survey for a homework assignment. So, I have the following code: [CODE] $con = mysql_connect("localhost","user", "mypassword"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mydatabase", $con); $slq = "INSERT INTO results VALUES('', '', '', '', '', '', '', '', …

Member Avatar for bibiki
0
153
Member Avatar for bibiki

Hey there, I built the following app; A frame that with three sections inside it. Each section is actually a panel. The first panel is a form I use for saving soccer matches on my database; The second holds only one button that reads textfields from the form above and …

Member Avatar for bibiki
0
556
Member Avatar for bibiki

Hey there, I am aware of GridLayout, BorderLayout and FlowLayout classes. However, I find them not to work satisfactorily well for me when trying to layout the entire content in a frame. What I usually do is this: I identify parts that I want in my window. For each part, …

Member Avatar for bibiki
0
108
Member Avatar for bibiki

hey there, I am trying to build a small around soccer/football matches. So, I have built a class that models a Match (Match.java). It only contains field variables like hostid, guestid, matchid, result, and such, and setter and getter methods. When I retrieve matches from my sqlite database, I build …

Member Avatar for bibiki
0
673
Member Avatar for bibiki

Hey there, I have taken earlier this tutorial on adobe's site for building an application for mobile devices. The tutorial provides a war file. After deploying the war file on my tomcat server, a few directories are built. Most importantly, WEB-INF folder. This folder contains some java files on one …

Member Avatar for bibiki
0
93
Member Avatar for bibiki

hey there, in Java, I can take a text file and build a two dimensional array out of it. I hope I can do that in PHP as well but I can't seem to be able to do it. these are the specifics of my problem: I have an xml …

Member Avatar for Insensus
0
2K
Member Avatar for bibiki

hey there, I am trying to write a simple script that lets me remove lines from a file. I have an elementet.txt file that contains one-word lines. I thought that if I put the file lines onto an array, and then put back the array elements back on file, excluding …

Member Avatar for bibiki
0
124
Member Avatar for bibiki

Hey there, seems like this part of DaniWeb is not as active as other parts, but in hope I get an answer, I'm asking. I have this xml file: [CODE] <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="site.xsl"?> <navigation> <link> <name>About</name> <content></content> <target>www.google.com</target> </link> <link> <name>Friends</name> <content></content> <target>www.google.com</target> </link> <link> <name>Archive</name> <content></content> …

Member Avatar for bibiki
0
145
Member Avatar for bibiki

Hey there, I might not be able to accurately describe my problems, but I'll do my best. I am taking these tutorials on adobe website that walks me through building a flex web application. In order to take the tutorials, I needed to previously deploy a war file that sets …

0
243
Member Avatar for bibiki

hey there, I have this java 3D home assignment I need help with. I would greatly appreciate it if someone could direct me to a solution. I need to build create a 3 D digital clock and add some key navigation to it. I managed to add the key navigation …

1
102
Member Avatar for bibiki

hey there again, I am trying to build a small mechanism that lets me store product names and prices on a produktet.txt file. the file should hold lines as follows: product1 price1 product2 price2 . . productN priceN So, I built a small panel with three rows and one column. …

Member Avatar for bibiki
0
146
Member Avatar for bibiki

hi again, I think I installed Java 3d correctly... I can compile code, but the code won't run. this is the error I am getting: [QUOTE] # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0949c964, pid=3832, tid=3604 # # JRE …

Member Avatar for bibiki
0
163
Member Avatar for bibiki

I have this file that contains an instance of some Machine object. When I compile the file I have, it says that the class uses a deprecated API, meaning the Machine object. I tried looking for it in [URL="http://download.oracle.com/javase/6/docs/api/"]this[/URL] link, but I find nothing. I was wondering if anyone who …

Member Avatar for bibiki
0
151
Member Avatar for bibiki

I have been thinking of making a graphing calculator for practice. However, I do not know how to assign to a variable an expression. What I exactly mean is: let's say x is a variable, and y a function of x. I can just define the function inside the code, …

Member Avatar for bibiki
0
119
Member Avatar for bibiki

hey there, I have the following piece of PHP code to retrieve a list of files on a directory, and then build links to each file: [CODE] <?php $dir=""; // Directory where files are stored if ($dir_list = opendir($dir)){ while(($filename = readdir($dir_list)) !== false){ ?> <li><a href="<?php echo $filename; ?>"><?php …

Member Avatar for bibiki
0
355
Member Avatar for bibiki

hey there, I have a simple page online, and tried to style it a little. here is my [URL="http://gagi.zxq.net/index.php"]page[/URL]. there are five links. I tried to build a simple, css-styled vertical menu. however, the button-like appearance of the links is not of equal length. would anyone tell me what part …

Member Avatar for ko ko
0
78
Member Avatar for bibiki

hey there, I havbe the following html and css files: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> <head> <link rel=StyleSheet href="style.css" type="text/css"> <title>My site</title> </head> <body> <div id="con"> <div id="navigation"> <ul> <li><a href="http://gagi.zxq.net/star.html">About me</a></li> <li><a href="http://gagi.zxq.net/ekes.html">Blog</a></li> <li><a href="http://gagi.zxq.net/mbretereshat.html">Links</a></li> <li><a href="http://gagi.zxq.net/bouncingball.html">News</a></li> </ul> </div> <hr> <div id="main"> …

Member Avatar for twiss
0
216
Member Avatar for bibiki

hey there, I am trying to make my first connection to a mysql server with java. I took the following code from another thread: [CODE] import java.sql.Connection; import java.sql.DriverManager; public class Connect { public static Connection ConnectDB() { Connection conn = null; try { String userName = "root"; String password …

Member Avatar for bibiki
0
166
Member Avatar for bibiki

hey there, I have a simple problem... but it seems overwhelming for me. I have a router, a desktop that runs XP, a laptop that runs Ubuntu 10.10. I want to make a home network with these devices I have. I have already managed to connect two computers, both running …

Member Avatar for bibiki
0
195
Member Avatar for bibiki

hey there, I downloaded the jxbrowser package that comes in the following folder jxbrowser-2.8-cross-desktop-win_mac_linux . I put it on a directory JavaBrowser on my desktop. I tried writing a java class that makes use of the package but my compiler complains for absence of the package. anyways, after reading the …

Member Avatar for mKorbel
0
131
Member Avatar for bibiki

hey there. I have the following code. I am trying to build an applet that displays all possible (92) ways of arranging eight queens on a chess board with no two of them on the same column, row, or diagonal. I built this as an application and it ran fine. …

Member Avatar for mKorbel
0
116
Member Avatar for bibiki

I am trying to build an application that finds all possible ways of arranging 8 queens on a chess board in such a way that no two of them are on either the same row, column, or diagonal. I am also trying to do this applying what I think is …

Member Avatar for bibiki
0
129
Member Avatar for bibiki

Hello people. I have the following class. [CODE] public class Model{ private Kutia[][] c; public Model(Kutia[][] x){ c = touch(x); } public void touch(Kutia[][] k){ for(int i = 0; i < 8; i++){ for(int j = 0; j < 8; j++){ if(k[i][j].occupied()){ touchHorizontal(k, i, j); touchVertical(k, i, j); } } …

Member Avatar for bibiki
0
200

The End.