No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi! I wrote a program that reads and saves e-mails, of course by using sockets for connecting to the mail server. But I don't know how to download attachments, I used telnet to open an e-mail with an attachment, and I didn't see a link or something to the attached … |
|
How do i compare an object with null? From what i've seen right now, at execution an NullPointerException will be thrown :S For example, if I have a list: [code=java] class List { private Node data; private Lista urm; public List(Node d,Lista u) { data = d; urm = u; … |
|
I am building an xml parser in java which will handle a catalog with some books (that have price and usefulness) and I want to implement an [B]optimum[/B] algorithm that selects the books from the catalog which have the maximum usefulness while staying within the budget. Example: [code] <catalog cash=”100”> … |
|
Hello! The error above appears on line 9 and i can't seem to figure it out! [code=php] <?php srand(time()); for ($i=0; $i < 5; $i++) { $rand1 = (rand()%13 + 1); $rand2 = (rand()%4 + 1); $slot[$i] = $rand1*10 + $rand2; for($j=0;$j<$i;$j++) while(slot[$i] == slot[$j]) { $rand1 = (rand()%13 + … |
|
Hello! I am trying to make a program for string compression using LZ compression techniques, but the program is at the beggining - I fail to realise what goes wrong, but I think it is a problem with string operations. [code=C] #include <stdio.h> #include <conio.h> typedef struct comp { char … |
|
If i have, for example, a marquee that displays time when i push a button,like this: [code=php] if($_POST['time']) echo "<marquee direction=right behavior=alternate scrolldelay=500 scrollamount=30>".date('d-m-Y').' GMT'.date('P').' '.date('H:i:s')."</marquee>"; [/code] ,it will display the time at the moment that i pushed the button. How could i make it to display the time continously? … |
|
i have a textbox and a button,like this: [code=php] <form method='post' action=<?php echo $_SERVER["PHP_SELF"]; ?> > <input type='text' name='write'> </input> <input type='submit' name='push'> </input> </form> [/code] , and i want that everytime that i push the button the content to be listed on the page without the previous content being … |