126 Discussion / Question Topics

Remove Filter
Member Avatar for rotten69

Hi there, I was reading a book on the plane and something interesting came to my mind that needs an answer. The length property of objects is a read/write value. Let's say, you've got an array that has 6 elements in it and you change its length to 10 as …

Member Avatar for Troy III
0
288
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 am looking for an editor or plugin for Komodo or Eclipse that provides me with the CakePHP function autocompletion and syntax correction as well. Thank you all.

Member Avatar for rotten69
0
192
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 everyone, Would anyone suggest good tutorials on simple game programming in javascript preferably using HTML4 ? Thank you..

Member Avatar for rotten69
0
214
Member Avatar for rotten69

Hi there, why does the sort function not sort out numeric values depending on their values(large to small or small to large)? var drinks1 = [40,30,10,20,100]; println(drinks1.sort()); // this will give you 10, 100, 20, 30, 40 it sorts those values as follows: 10,100,20,30,40 Is there a way of changing …

Member Avatar for pritaeas
0
277
Member Avatar for rotten69

Hi everyone, I'm just looking for some graph makers for the data we have in our database. We would like to analyse the data taken out of the database and present it in a graph format to see who has got low/high ranks. Is there any free API that we …

Member Avatar for gabrielcastillo
0
178
Member Avatar for rotten69

Hi there,, I am trying to get my hea around this simple line of code and trying also to make it work. The ball doesn't move to any direction.. thanks for the help.. <script type="text/javascript"> function moveRight(){ document.images['ball'].style.left = parseInt(document.images['ball'].style.left)+5 +"px"; } </script> </head> <body> <img id="ball" src="ball.jpg" alt="ball bouncing" …

Member Avatar for Troy III
0
184
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

Hi everyone, I'm using jquery in this piece of script and also trying to call the functions. But, they aren't working at ALL and the firefug is saying that there is an error in the script. The error is [QUOTE]missing ) in parenthetical [Break On This Error] $.post('ajax/like_add.php', (article_id:article_id), function(data){ …

Member Avatar for lambing
0
202
Member Avatar for rotten69

Hi everyone, I am trying yo loop through an array property that is multi-valued and so the condition is if that property has what the value specified then alert with a message saying hello.. The other idea is kinda complex that is to check using RegExp... Here is the code.. …

Member Avatar for AleMonteiro
0
100
Member Avatar for rotten69

Hi there, I was trying different types of array initialisation in Javascript and the book that I was reading, said it is possible to initilaise an array with a speicified number of elements in it. However, I tried it and unfortunately, it didn't work. As you can see the code …

Member Avatar for sepp2k
0
222
Member Avatar for rotten69

Hi there, I was wondering what the string.split() does. And another question is that I want to loop through the class like Math and find out what functions are defined in it.But, I was not too sure how to that. I tried a couple of things but they unfortunately didn't …

Member Avatar for rotten69
0
223
Member Avatar for rotten69

Hi everyone, I have had this question for a very long time and am not sure about fixing the problems with different screen sizes. Recently, I designed a website on 10 inch screen laptop and when I opened it on the other laptop that is 15 inch screen. I could …

Member Avatar for Oxiegen
0
156
Member Avatar for rotten69

Hey everyone, I am looking for Javascript API's on the internet but I couldn't find one that has all built-in functions and stuff. Is there a downloadable version of the documentation or a website that I can search what function is available? something like php.net Cheers,

Member Avatar for rotten69
0
419
Member Avatar for rotten69

Hey everyone, I tried testing this code if it is true or not. But,apparently, it is indeed true. So, it is not like referencing an element in array and changing its value. Can someone explain it why this is exceptional with numbers, please? var a = 3.14; // Declare and …

Member Avatar for rotten69
2
234
Member Avatar for rotten69

Hey everyone, Is a database design based on Data Flow Diagram? Like, the number of datastores should be the same as the number of tables in the database? Cheers,

Member Avatar for mariaceline_21
0
199
Member Avatar for rotten69

Hey everyone, I am just wondering what is based on what when designing a database.. Is an ER based on DFD? and Is a database design based on ER or DFD? I have got different names for data stores in my DFD and my other group member has different names …

Member Avatar for rotten69
0
242
Member Avatar for rotten69

Hi everyone, I have got a mac book pro and it had initially an OSX before I partitioned the disk. When I did partitioned it, I could see a decrease in the size of the disk. I've only got two partitions that are one for Win7 and the other one …

Member Avatar for rotten69
0
314
Member Avatar for rotten69

Hey everyone, I'm working in a team on an IOS App and web app and the app relies on facebook pages to retrieve cafe names to let users check in the cafe they are at. But, the problem is that not all cafes have a facebook page.We would like to …

Member Avatar for rotten69
0
242
Member Avatar for rotten69

Hey Daniweb lovers, I am using a cake php framework to develop my application. The problem I am facing at the moment is that I am trying to use two different tables (let's call them users and products.) I can select users from the users table. But, I have got …

Member Avatar for rotten69
0
127
Member Avatar for rotten69

Hey people, I am wondering what a good editor is that supports HTML5, CSS3, cakephp and a few other plugins ? I'm using Eclipse for php which supports HTML5... At the same time, I trying Aptana Studio3 which supports CSS3 ... I need one that supports all.. Or even Plugins …

Member Avatar for rotten69
0
174
Member Avatar for rotten69

Hey everyone, Recently, I have developed a website for my project and was using a 10-inch laptop during the development time. It looked fantastic on a 10-inch screen. However, I faced a problem with the width (CSS properties needed to be changed) of navigation bar on the top when I …

Member Avatar for ctaylo21
0
105
Member Avatar for rotten69

Hey everyone, I am having trouble accessing the web pages on my online server. On my local server, I access them using this URL(localhost/mvc/users/index) But this doesn't allow me to access the pages except for the config page which is on mysite.com/mvc Any help please?

Member Avatar for veedeoo
0
92
Member Avatar for rotten69

Hey everyone, Does anyone know if there is a possible way of using an online Database without uploading the website files onto the server? Cheers,

Member Avatar for rotten69
0
240
Member Avatar for rotten69

Hi, I have a mac book pro. I'd like to know how to burn dmg files onto DVD-R as bootable on Windows 7? Do I also need to convert the files to ISO type in order to make them run smoothly when I start up the machine? Thanks...

Member Avatar for AlexandraM
0
189
Member Avatar for rotten69

Hi everyone, I'm trying to do exercise from the book I'm reading at the moment. But, I don't seem to have understood the last part of the question. I'd greatly appreciate anyone explaining the question to me. I have done all parts of the question except the last one which …

Member Avatar for Philippe.Lahaie
0
259
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 everyone, I had this problem with phpMyAdmin and successfully fixed it. Then, after some days, I encountered the access problem with the WAMP server. I haven't changed anything yet. Or maybe, I need to set up the environment variables? The message I'm getting is that [QUOTE]Forbidden You don't have …

Member Avatar for rotten69
0
166
Member Avatar for rotten69

G'day everyone, I'm doing at a tutorial on Oracle website and still following it so far. I have come across this formatter "%,8d" and can't seem to work out how it works. I know it's adding a coma to the integral number. The thing that I can get my head …

Member Avatar for rotten69
0
109
Member Avatar for rotten69

I'm trying to make a table and mysql is giving me this error: [QUOTE] #1005 - Can't create table 'likes.users' (errno: 150) [/QUOTE] That would be great to see a website that explains mysql errors like this for oracle [url]http://ora-code.com/[/url] [CODE] CREATE TABLE IF NOT EXISTS `users` ( `user_id` int(2) …

Member Avatar for rotten69
0
164
Member Avatar for rotten69

Hi all there, I was reading a book on Java and came across this piece of code. Now, I am not sure how line 13 works especially, these symbols after the equal signs "passed=%d; failed=%d%n" . How do the symbols affect the output of the variables(passed & failed)? so let's …

Member Avatar for JamesCherrill
0
324
Member Avatar for rotten69

Hi everyone, I have created tables and deleted some rows and then inserted new rows. The IDs of the later created rows didn't start at 0 or 1. I dropped my entire database then recreated the same one with the same tables and fields. Unfortunately, newly entered rows started from …

Member Avatar for rotten69
0
178
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

Hey everyone, I'm just wondering what level and type of maths are needed in solving programming problems. I was looking at maths courses the other day but I was unsure which one would suit my need as I'm an IT guy. Can anyone suggest something? I want to be able …

Member Avatar for bibiki
0
215
Member Avatar for rotten69

Hey everyone, I was doing an exercise from Java book and I didn't get how this code works.. I know how the switch statement works. However, I don't understand why they pass a number to the Random class and also to the .nextInt() method on rand. And also, I am …

Member Avatar for rotten69
0
186
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 everyone, I'd like to ask our Java experts a simple question about learning Java. I want to know how to learn a programming language in easy steps(if possible) especially Java. Would anyone suggest a good way of learning it and improving the way that from how a normal person …

Member Avatar for hiddepolen
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

The End.