project
I'm not so sure what you consider "too advanced".. But.
-Make a page that does the same thing as http://w3schools.com/js/tryit.asp?filename=tryjs_comments1
-Make a script that will use an iframe (for real 2)and a button. The button will be used to iterate through the possible pages, starting with real2/backup_2004-01-01_1000.sql to real2/backup_2004-01-02_1000.sql ect.
Eh.. I have some more ideas, but that's what I have for now.
good luck.
Just so you know your second suggestion has been done (http://www.hellboundhackers.org/code/readcode.php?id=166)
but it's not a bad idea for practice assuming you try doing it without looking at the above link
s3klyma wrote: I'm not so sure what you consider "too advanced".. But.
-Make a page that does the same thing as http://w3schools.com/js/tryit.asp?filename=tryjs_comments1
-Make a script that will use an iframe (for real 2)and a button. The button will be used to iterate through the possible pages, starting with real2/backup_2004-01-01_1000.sql to real2/backup_2004-01-02_1000.sql ect.
Eh.. I have some more ideas, but that's what I have for now.
good luck.
not quite sure i understand
nvm i see what you mean
oops double post
s3klyma wrote: I'm not so sure what you consider "too advanced".. But.
-Make a page that does the same thing as http://w3schools.com/js/tryit.asp?filename=tryjs_comments1
-Make a script that will use an iframe (for real 2)and a button. The button will be used to iterate through the possible pages, starting with real2/backup_2004-01-01_1000.sql to real2/backup_2004-01-02_1000.sql ect.
Eh.. I have some more ideas, but that's what I have for now.
good luck.
not quite sure i understand
nvm i see what you mean
oops double post
s3klyma wrote: Eh. I figured that it had been done.. But it seems to be a pretty good challenge.
AND. so. I just found this one about 20 minutes ago.. and it was, well, kinda hard for me to do..
make a script that will do 1/30 + 2/29 + 3/28…..30/1 and output the final number
i think this is what you mean. its kinda a cheap way of doing it
document.write(1/30+2/29+3/284/27+5/26+6/25+7/24+8/23+9/22+10/21+11/20+12/19+13/18+14/17+15/16+16/15+17/14+18/13+19/12+20/11+21/10+22/9+23/8+24/7+25/6+26/5+27/4+28/3+29/2+30/1)
</script>```
fallingmidget wrote: i think this is what you mean. its kinda a cheap way of doing it
document.write(1/30+2/29+3/284/27+5/26+6/25+7/24+8/23+9/22+10/21+11/20+12/19+13/18+14/17+15/16+16/15+17/14+18/13+19/12+20/11+21/10+22/9+23/8+24/7+25/6+26/5+27/4+28/3+29/2+30/1)
</script>```
That is disgusting! -_-
Python:
> (ans, numerator, denominator) = (0, 1, 30)
for n in xrange(30): ans += (numerator + n) / (denominator - n + 0.0)
print ans
Some ideas:
-Make a game (tetris, poker, chess, battleship) -Learn a server side scripting language, and practice AJAX -Use javascript to screw with images on a page (move them around, and don't let the mouse get close to the images) -Make a javascript application such as a guest book, forum, or shout box (I remember reading somewhere about those, but I don't remember where.)
Those are just a few I came up with.
fallingmidget wrote: that is disgusting WHY?
fallingmidget wrote: if anyone would like to give me something to work on…
Ya sure, I got something remedial for you.
If you look at my profile you will see a block of text under the About User section.
Your task, if you choose, is to give the text a checkered like appearance (http://tinyurl.com/4y8x6t). You do this by using the font color tags (string manipulation), alternating between two colors. There should be 8 'squares' going horizontally and x going vertically. You should determine how many characters should be included in a square. Obviously there are spaces so there will be gaps in the 'squares'. As you can see, the right hand margin of the text is not uniform so that will brake the square like appearance but that is okey. The finished product should a string which I can input into the about me input box .
I hope I made my instructions clear.
EG of a square:
Foo bar Foo bar Foo bar Foo bar
Um.. I was almost positive that I posted this.
So.. when I said the 1/30 thing, this is what I was thinking (please help me out, I don't know what to do from here)
<html>
<body>
<script type="text/javascript">
var b = 30;
var a = 1;
var numbers = new Array();
for(i = 0; i < 30; i++){
var m = a++;
var n = b--;
numbers[i]=m;
var nnumbers = new Array();
nnumbers[i] = numbers[i]/n;
document.write( nnumbers[i] + "<br>" );
}
</script>
</body>
</html>
I like to space everything out to make it easier to read.
s3klyma wrote: Um.. I was almost positive that I posted this.
So.. when I said the 1/30 thing, this is what I was thinking (please help me out, I don't know what to do from here)
<html>
<body>
<script type="text/javascript">
var b = 30;
var a = 1;
var numbers = new Array();
for(i = 0; i < 30; i++){
var m = a++;
var n = b--;
numbers[i]=m;
var nnumbers = new Array();
nnumbers[i] = numbers[i]/n;
document.write( nnumbers[i] + "<br>" );
}
</script>
</body>
</html>
I like to space everything out to make it easier to read.
don't quote me on this but i think you messed up in the var numbers= new Array
you're not setting any values for the array that and i don't see any division symbols in there to make it divide the numbers and then add all the results to one number
s3klyma wrote: Um.. I was almost positive that I posted this.
So.. when I said the 1/30 thing, this is what I was thinking (please help me out, I don't know what to do from here)
<html>
<body>
<script type="text/javascript">
var b = 30;
var a = 1;
var numbers = new Array();
for(i = 0; i < 30; i++){
var m = a++;
var n = b--;
numbers[i]=m;
var nnumbers = new Array();
nnumbers[i] = numbers[i]/n;
document.write( nnumbers[i] + "<br>" );
}
</script>
</body>
</html>
I like to space everything out to make it easier to read.
Well I don't know if you know any C++ at all so this may not help you at all but if this was going to be done in C++ here's a way to do it:
It may help you and it may not. I don't do anything with Javascript so sorry I couldn't do one out in the same language.
ynori7 wrote: why's everyone using arrays? that's terribly inefficient. here's the simplest way i see to do it, and the code will work in a number of languages (i.e. c/c++, java, maybe javascript)
for(int i=1; i<=30; i++)
{
ans += i/(31-i);
}```
i see what your doing but it would be differant. i was thinking something like
```markup
a=30
b=1
for (i=0;i<29;i++)
{
var t=a/b+a--/b++);
}
document.write(t)
i'm not exellent in JS so i'm not so sure but the document.write thing i did would work
Yeah. I do know some c++. Anyway, I found a better way to do it.(w/ javascript)
I've been spending every bit of neurological power that I possibly could on javascript 16.. And that's what helped me find a better way to do it.
Oh. and.. If you'd like to.. you know.. help me out a bit with JS 16, it'd be greatly appreciated.
I understand how all of the numbers are formulated. I've gone through three stages of advanced algebra, and one stage of advanced geometry, but for the life of me, I cannot formulate any sort of equation to work out the right answer…. I'm racking my brain on this, and, well.. kinda getting nowhere.
I want you to know…
Not helping me out on this is like holding my sanity hostage, and some time soon, that money is due..:xx:
@fallingmidget - what you posted doesnt quite work. your final answer would be 2/29 + 1/30, which isnt right. you would need it to be: t=t+a/b+a–/b++; also, you probably want to declare t outside of the for loop.
EDIT: also, i'm pretty sure what i did would work except for maybe the variable declarartions.
what i mean is you would have to change the syntax so it would work in JS.
well putting it in the for loop should make it keep repeating until it reaches 30 times so a will increase thrity times and b will decrease thirty times. and it will add the result everytime then after the loop is done it should write the result.
fallingmidget wrote: well putting it in the for loop should make it keep repeating until it reaches 30 times so a will increase thrity times and b will decrease thirty times. and it will add the result everytime then after the loop is done it should write the result. fallingmidget also wrote: for (i=0;i<29;i++) { var t=a/b+a–/b++; }
it does indeed add the result after each iteration of the loop, however it replaces the old one rather than adding on to it.
right now, after the first iteration t= 30/1 + 29/2 after the second iteration, t=29/2 + 28/3 but it should equal 30/1 + 29/2 + 28/3