53 Solved Topics

Remove Filter
Member Avatar for rotten69

Hi everyone, I consider myself as a java beginner because I haven't been involved in a lot of projects. I'm opening this thread to raise awareness that we don't have java projects thread primarily for beginners and it could help advanced java programmers in terms of practising their java knowledge. …

Member Avatar for renato.francia
4
870
Member Avatar for rotten69

Hi everyone, I am trying to compile a sencha touch 2 project to build an android app but it doesn't compile fully and successfully. When I run this command, `sencha app build native` targeting android/iOS platform. The error I get is as follows below: [WRN] [ [1000] : Yui Compressor …

Member Avatar for rotten69
0
375
Member Avatar for rotten69

Hi there, I have been trying to fix the problem in the below code for a long time, it did work for me at some point. Then, it suddenly stopped storing user's details in a session. $user = $_POST['username']; $pass = $_POST['password']; $query = "SELECT username, password FROM USERS WHERE …

Member Avatar for diafol
0
211
Member Avatar for rotten69

Hey guys, I don't see anything wrong in the function but mysql_result is complaining about the parameter value passed to it. function question_exists($question_id){ $question_id = (int)$question_id; return ( mysql_result(mysql_query("SELECT COUNT('id') from `posts` WHERE `id`=$question_id"),0) == 0) ? false : true; // if the question doesn't exist (equal to ZERO) then …

Member Avatar for rotten69
0
132
Member Avatar for rotten69

Hi everyone, I'm making my first jQuery mobile app and using a fixed bottom navbar. But the app is acting a little weird. When I tap the background twice, the navbar disappears or moves up a little. how can I fix this problem?

Member Avatar for rotten69
0
129
Member Avatar for rotten69

I'm using jQuery for mobile and making the app show users a dailog box to let them enter their credentials when they want to log into the app. Ok. it redirects them to the home page but the url stays as mysite.com/login.php rather than mysite.com/index.php This removes the menu bar …

Member Avatar for rotten69
0
168
Member Avatar for rotten69

Hey everyone, I'm having trouble to get this code to work as I wanted. My application is running on the top jQuery for mobile framework. The message I'm getting is this "undefined". I enter the right username and password but don't know what is undefined. <?php include('funcs/connector.php'); $port = new …

Member Avatar for rotten69
0
122
Member Avatar for rotten69

hey guys, I don't seem to understand why this code is throwing a type error at me. It is saying the variable is undefined. The error I'm getting is this **TypeError: datasplits is undefined datasplit2s = datasplits.split(":");** var urlphp = 'ajaxgamesperday.php?&start_date=' + startDate + '&end_date=' + endDate; $.ajax({ url: urlphp, …

Member Avatar for rotten69
0
172
Member Avatar for rotten69

Hello everyone, I'm just wondering if there is another of calling functions in a different php file without making the app run strangley. So what I have got are a few forms without specifying their action. <?php 1- checking for the fields 2- if they are not empty and so …

Member Avatar for adam.adamski.96155
0
208
Member Avatar for rotten69

Hi everyone, I just found something interesting in my code but I ain't sure why JavaScript. var input= 0; // But in my case, the input variable is getting the value from a field in a form if(!Number(input)){ document.write('it is not a ZERO'); } This is something similar to my …

Member Avatar for rotten69
0
148
Member Avatar for rotten69

Hi there, I've lost my password and username and am trying to log in using sysdba. It doesn't log me in and I would like to retrieve my username and password without re-installing the software. IS there a way of doing that?>

Member Avatar for rotten69
0
145
Member Avatar for rotten69

Hi everyone! My questions for the day are: Has anyone here used Wakanda studio/server to make a native app for smartphones? if yes or know anything about it, Give us an insight please. Do you know any free and easy to use studio that lets you develop native apps using …

0
96
Member Avatar for rotten69

Hi everyone, I had an issue today with my hard disk(internal hard drive). I was trying to partition the C drive.Eventually, I successfully paritioned it then I was asked a question then I pressed yes. Here is the problem. Everything changed from primary partition to simple volume. I was not …

Member Avatar for caperjack
0
630
Member Avatar for rotten69

Hi everyone, I'm sure the update statement is well-written but for some reason Oracle sql command line is refusing to execute it. UPDATE myTable SET country = 'Aus' WHERE username = '"martin"'; // I know you can see single quote and double-quote as well. Well, names were inserted into the …

Member Avatar for rotten69
0
165
Member Avatar for rotten69

Hey everyone, I'm posting this thread in this forum because I am not sure where else it should go to. Anyway, I'd like to straight jump to the question. I want to make the URL to my site look like mob.mysite.com. how do you achieve something like this? do I …

Member Avatar for rotten69
0
110
Member Avatar for rotten69

Hi everyone, I'm looking for the page that explains the rankings within DaniWeb community and shows how many posts are needed to move you up to the next level and stuff. Cheers!

Member Avatar for rotten69
0
449
Member Avatar for rotten69

Hi everyone, The function I've got works perfectly but the problem is that it displays the message quickly and then the message disappears for some reason. Am I doing something wrong?? function validateForm(){ var input0 = document.getElementById('input0').value; var input1 = document.getElementById('input1').value; var input2 = document.getElementById('input2').value; var input3 = document.getElementById('input3').value; var …

Member Avatar for Troy III
0
227
Member Avatar for rotten69

Hi everyone, I was in a group meeting for a project and my group members were talking about minimizing the number of tables and having two big tables and one or two small tables connected to the main big ones. The question is : What is better to have less …

Member Avatar for rotten69
0
133
Member Avatar for rotten69

Hi there, Can anyone explain what is wrong with my code? I get an error message saying null value from innerHTML. <script type="text/javascript"> var sub1 = document.getElementById("input1") ; var sub2 = document.getElementById("input2") ; var sub3 = document.getElementById("input3") ; var sub4 = document.getElementById("input4") ; var GPA = (sub1+sub2+sub3+sub4)/4; var para = …

Member Avatar for rotten69
0
3K
Member Avatar for rotten69

I was just wondering why the constructor makes a call to the method toString() then I have realised that it's because of the method's name. And why is its name so unique? I changed the name but I don't get the same results. Anyone could possible explain this please? Thanks. …

Member Avatar for rotten69
0
340
Member Avatar for rotten69

Hi all, I haven't changed anything in the config file in phpMyAdmin folder. I don't know why the WAMP server gives me this error. Although everything was working perfectly yesterday. Does anyone know how I can fix this problem? [CODE] You don't have permission to access /phpmyadmin/ on this server. …

Member Avatar for rotten69
0
107
Member Avatar for rotten69

I created a foreign key on a table just using this statement. When I wanted to drop it, phpMyAdmin didn't allow me to do so. Would anyone suggest a nice way of getting away with it? [code] ALTER TABLE `likes` ADD CONSTRAINT (fk_user_id) FOREIGN KEY REFERENCES `users` (user_id); [/code] This …

Member Avatar for rotten69
2
6K
Member Avatar for rotten69

Hi everyone, I'm just wondering why this method below causes an infinite loop to happen. I thought it would run once and then stop. Anyone can explain this? that'll be great. [code] public String printer(String s){ if (s.length() >= 5){ System.out.println("I'm " + s + " And my length = …

Member Avatar for rotten69
0
124
Member Avatar for rotten69

G'day everyone, I'm just wondering about what's actually the best option out of these PHP sessions(server-side) and JavaScript sessions(client-side)? If the server-side session is not stored on client's machine, where else would it be stored? Are there any pros and cons of each option? Thanks folks.

Member Avatar for phorce
0
163
Member Avatar for rotten69

Hey everyone, I'm wondering if there is an HTML doc for html 4 and 5. A doc that has all the attributes and tags like the JDK for java. Please post a link to a site if there is one. Thanks.

Member Avatar for rotten69
0
79
Member Avatar for rotten69

Hi everyone, Could anyone please tell me why that line in the if-statement body is breaking the method? [CODE] static int [] doubleMe(int [] list){ int [] y= list; int c = 0; int [] w; for (int i= 0; i < list.length; i++){ c = list[i]; if (c % …

Member Avatar for rotten69
0
185
Member Avatar for rotten69

Hi everyone, I'm doing a little experiment on Java loops.. I came across these infinite loops and they never wanted to stop .... Could anyone explain these loops to me, please. Thanks in advance. [CODE] for (int a=0;a <= 5; a++){ int c; int b= 6; for( c=0; c <= …

Member Avatar for rotten69
0
184
Member Avatar for rotten69

Hey everyone, I'm wondering why I can't print the values that are in the array. I'm passing an array to the method below and trying to print the result.. the compiler says that "ArrayIndexOutOfBoundsException" What's the problem really? [code] public static int[] treble(int[] nums){ for (int i=0; i <= nums.length; …

Member Avatar for stultuske
0
155
Member Avatar for rotten69

Hi php geeks, I'm just looking for PHP exercise online. If anyone knows websites that offer hands-on PHP exercise, Please send me a link or something that redirects me to useful exercises. Your help will be appreciated. Cheers,

Member Avatar for rotten69
0
213
Member Avatar for rotten69

I have installed SQLPlus on my ubuntu 10.10 and now I want to install Oracle server.. I was following a tutorial on that and at the end of it, I got lost because I don't have access to certain files that were mentioned in the tutorial and I changed permissions …

Member Avatar for rotten69
0
182
Member Avatar for rotten69

[CODE]public static void main(String [] args){ ArrayList<String> list1 = new ArrayList<String>(); list1.add("ABC"); list1.add("123"); ArrayList<String> list2 = method(list1); list2.add("ABC"); list1.add("123"); System.out.println(list1); System.out.println(list2); } private static ArrayList<String> method(ArrayList<String> list) { ArrayList<String> result = list; result.remove("123"); return result; }[/CODE] Could anyone explain this code to me? why it gives me the same result …

Member Avatar for JamesCherrill
0
193
Member Avatar for rotten69

Hey everyone, Is this the right way how to make a trigger in Oracle? [CODE] CREATE OR REPLACE TRIGGER "TRI_AMOUNT_REDUCTION" BEFORE INSERT ON "PURCHASE" FOR EACH ROW BEGIN IF (:NEW.CLIENTNO =SELECT C.CNAME, T.CLIENTNO, T.TOTAL FROM CLIENT C, ( SELECT A.* FROM (SELECT CLIENTNO, SUM(AMOUNT) AS TOTAL FROM PURCHASE GROUP BY …

Member Avatar for hfx642
0
150
Member Avatar for rotten69

Hey everyone, I'm trying to count all Purchases and find ReceiptNo the ones that start with '434'.. [CODE] Select count(p.purchaseNo) from purchase p (select INSTR(TO_CHAR(p.recceiptNo), "434") >= 10; [/CODE] But this line doesn't only select all receipt number starting with 434.. it selects all receipt no that has 434 in …

Member Avatar for hfx642
0
85
Member Avatar for rotten69

Can anyone see anything wrong with this statement? [CODE] CREATE OR REPLACE VIEW V_DEPT_AMOUNT AS SELECT DEPTNO AS DNO, DNAME AS DNAME, MAX(AMOUNT) AS MAX_AMOUNT, AVG(AMOUNT) AS AVG_AMOUNT, MIN(AMOUNT) AS MIN_AMOUNT, SUM(AMOUNT) AS TOTAL_AMOUNT FROM DEPT D, EMP E, PURCHASE P WHERE D.DEPTNO = E.DEPTNO GROUP BY DNAME, DEPTNO; [/CODE] …

Member Avatar for hfx642
0
104
Member Avatar for rotten69

Hey everyone, I have been looking for video tutorials on SWING class and pretty much of GUI side in Java .. I found tutorials on Oracle site but they require lots and lots of reading.. if anyone knows a good site that has videos on GUI, please share it.. Time …

Member Avatar for ceyezumma
0
431
Member Avatar for rotten69

hey everyone, I'm trying to get my head around this Question but it is not making that much sense .. Each receipt is issued from a receipt book whose number is encoded in the first three digits of the ReceiptNo field in the PURCHASE table. For example, the receipt numbered …

Member Avatar for hfx642
0
182
Member Avatar for rotten69

Hey, [CODE] CREATE OR REPLACE TRIGGER "TRI_AMOUNT_REDUCTION" AFTER INSERT ON "PURCHASE" FOR EACH ROW BEGIN IF (:NEW.CLIENTNO = 122336) THEN :NEW.AMOUNT := AMOUNT * 0.1; END IF; END; / [/CODE] I have a query that selects my top client then want to pass the clientNo to the trigger. Is it …

Member Avatar for rotten69
0
158
Member Avatar for rotten69

Hey everyone, I'm just wondering if there is a way to get around this problem. I'm running SQLplus on UNIX server and SSHing into the server. Whenever I query Oracle DB, a list of results/bunch of tables comes up but I can not scroll up to the top of tables..... …

Member Avatar for rotten69
0
148
Member Avatar for rotten69

Hi everyone, I've been trying different commands that check inputs that will be entered into the tables I've got. I want to check that Amount/Ename columns can not be NULL. What's <> do in SQL? [CODE] // first command ALTER TABLE Emp ADD CONSTRAINT CK_AMOUNT CHECK ( AMOUNT NOT NULL); …

Member Avatar for hfx642
0
148
Member Avatar for rotten69

Hi everyone, I am doing a Java course at uni at the moment and it kinda doesn't make you become a real programmer with the confidence that a programmer should have. I really want to program in Java and any language(not python though because it is not a user-friendly programming …

Member Avatar for rotten69
0
191
Member Avatar for rotten69

Hi everyone; I'm working on a c# service that queries the DB and checks if the right info is available for users. It's an Airline tickets reservation system. I am not sure why my code is breaking after it gets the query and it gives an error about sqlclient.. [CODE] …

Member Avatar for arunkumars
0
205
Member Avatar for rotten69

hey everyone, I'm just having a problem debugging this line and I don't see anything wrong with it. I tried using SelectValue and other ways but nothing seems to be working. The error message I get is that Exception Details: System.FormatException: Input string was not in a correct format. [code] …

Member Avatar for kvprajapati
0
105
Member Avatar for rotten69

Hi people, I just re-installed Linux on my machine and I am trying to update it by using the command [CODE] sudo apt-get update[/CODE] and the error messages I get in the terminal are [CODE]Err http://security.ubuntu.com natty-security InRelease Err http://extras.ubuntu.com natty InRelease Err http://security.ubuntu.com natty-security Release.gpg Could not resolve 'security.ubuntu.com' …

Member Avatar for JasonHippy
0
373
Member Avatar for rotten69

Hey everyone, I looked around if anyone has the same error. there are people who have had this error, but I couldn't really get to the point that what causes this error to occur. I thought the data types in my table are the reason and I changed them. But, …

Member Avatar for hericles
0
107
Member Avatar for rotten69

Hi everyone, I'm just adding these two binary numbers and not sure about the sub-questions(a,b) of the question that are below: Q1 - What is the (5-bit) result of adding the 5-bit unsigned numbers 10001 and 00111? Answer: 11000 Q1a - What is the value of the carry in to …

Member Avatar for rotten69
0
266
Member Avatar for rotten69

Hey everyone, my if-statements are working as expected. Actually, they are not working at all. The syntax is right but they are never run. The program terminates before it runs them. [code] public static void main (String args[]){ Scanner input = new Scanner(System.in); Display fName = new Display(); // creating …

Member Avatar for aman rathi
0
133
Member Avatar for rotten69

Hello, Are we allowed to assign different values to just one variable? For example, gender = [Female, female, fEmale] so if one a user enters any of the specified ones then he/she will be taken to the next step/level. I'm just doing a tute at the moment and coming up …

Member Avatar for NormR1
0
195
Member Avatar for rotten69

Hey everyone, Just curious why my little program doesn't go through the if-statement I specified in it. [code] public static void main (String args[]){ Scanner sc = new Scanner(System.in); System.out.println("Enter a value for girls:"); int GIRLS = sc.nextInt(); System.out.println("Enter a value for boys:"); int BOYS = sc.nextInt(); if (BOYS == …

Member Avatar for NormR1
0
193
Member Avatar for rotten69

Hello everyone, I have a book called "Java Genesis" and it has some files such as packages, projects and hints to enhance learning. So, I have set up a file structure in Eclipse and it shows that there are errors and warnings. When I tried running a Java Application using …

Member Avatar for rotten69
0
10K
Member Avatar for rotten69

Hi everyone, I'm using a mk320 logitech that is connected to my laptop wirelessly. When I want to use the built-in keyboard on my windows7 starter, keys are giving me the values as they're expected to give like pressing button p gives me numeric value and likewise for o,l and …

Member Avatar for flagstar
0
83

The End.