peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You just wasting your and our time. Skype spent millions of hours and pounds/dollars to develop their application and they not gone give you decryption algorithm...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

#define & tetro congratz ladies/gents!

You just made new forum record of re-opening oldest thread which now stands for 7 years.

Thread closed.

jonsca commented: Nice! +2
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

hi, i actually wanted a c code for sjf but im not able to get an idea for the starting time can any one help me out in this.........
please mail the idea to <EMAIL SNIPPED>
thank u......

Read my above reply and consider your options. Laziness is not welcome here.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I need to know how to make a c programm with dice.

Forum policy is We only give homework help to those who show effort. Therefore come back with some code you did, create new thread, explain where you have difficulties and maybe somebody will help you.

Thread closed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Next time please read carefully this is on top of Java Starting thread

Please don't post "spam" or "Thank you" posts in this thread since this is meant to be used as a guide for all beginners and I am sure we would like it to be on topic. I hope you understand this.

plus what is wrong with the link which is provided in first post http://www.jmonkeyengine.com/ ?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Are still looking ? I mean for part-time CF developer?

Closing thread before another time traveller ask same question again...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread closed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

They seem to have such a chemistry. They appear in all the pictures together. It seems like are they are just one piece. I was wondering whether they are lovers.

http://en.wikipedia.org/wiki/Ken_Thompson

http://en.wikipedia.org/wiki/Dennis_Ritchie

Do not post irrelevant information in the future, most moved..

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

hello um doing mi final project and have chose to do about passport agency system since is not yet established in our country really need ur help

  • Create general idea what such system should have according to you
  • Do research on what other countries use based on content published publicly on internet
  • Based on these things establish your own requirements and decide on which technology would be most soutable to your needs
  • Next time post in relevant section with SPECIFIC question not GENERAL request

Thread closed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i want to make a project on messnger in java wit the help of jsp and sql database so kindly elp me on my project i m fresher so plz give the basic detail also

Nobody is certainly stopping you there

and i want code for print directly to the button when user click on that print button but code in the form of java or ejb

and I want you to read this We only give homework help to those who show effort. May sound harsh, but all depends on your interest...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
  1. create frame
  2. create 2 text fields and 2 buttons
  3. use layout manager to arrange above components
  4. add above mentioned comments to frame
  5. associate actions with buttons, that mean provide validation logic, some functionality to communicate with database(to establish connection to save data and to retrieve data based on other data provided by user) and do not forget to create pop up with JOptionPane
  6. job, do not forget to handle in for assignment marking
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

sir i am doing mca project in networking ...concept is compress the encrypted file and then decompress and decrypt the same original file..
the file which may be text, image format or any combination which will be implemented in java sir...

which is the best algorithm for compression and encryption the bulk of data...

i need related title for my project sir.........

Not enough you hijacked someone else thread in different programming language you are even lazy to ask others to do your work. Use google to search for relevant topics and come back when you have some specific problem, not general query that can be solved by using online search...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The aim of this thread is to gather useful information in regards of Java web development. If you know some tips and tricks, tutorials or any interesting links that has not been already mentioned in previous posts please share with us (please always check to avoid double posting).
Please DO NOT post questions in this thread and also to not post any links leading to websites associated with you as this will goes against forum policies.

What you need for Java web development:Some previous Java knowledge, if you don't know Java you better start reading Starting "Java" [Java tutorials / resources / faq]
Installation of Java (instructions here)
Installation of either Java web server also know as J2EE server(JBoss, WebLogic, WebSphere) or web container (Tomcat, GlassFish) - [Quick jump to post here]
Access to database (MySQL, Oracle, HSQLDB etc.) - [Quick jump to post here]
Optional tools (Ant, Maven, Subversion) - [Quick jump to post here]
Your favourite IDE (IntelliJ IDEA, Eclipse, NetBeans, etc.)
Installing Java
Ubuntu
Install

sudo apt-get install sun-java6-jdk

Java is installed under /usr/lib/jvm/java-6-sun-1.6.0.15 (version number 1.6.0.15 my change over time)Note please that there been some changes in recent release of Ubuntu 10.04. To install Java you need first make changes in repositories as follows before you can run above installation command

sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
sudo apt-get update

Set environment variable
Many tutorials on the internet will tell you that …

~s.o.s~ commented: Finally! More "powah" to you, good job. ;-) +13
harry010 commented: hey. Thanks for all of the links to other resources. very helpful +1
SagarSe7en commented: another helpful tutorial by one of the geniuses of daniweb. Will recommend it to others :-) +2
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

One of the forum most important rules We only give homework help to those who show effort. If you do not follow rules, we will not help.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

yes im talking about building an image viewer, but i want it in for loop...
so cn u plz tel me how to do it...
rply as soon as possible...
m waiting...:X

anybody plz help me....
i want code fr image viewer...

You bee already given example. What is wrong with it? Secondly if you cannot add for loop in that existing code I doubt you will be able to customize any code we show you. So sort your ideas and priorities and do not forget to read this rule We only give homework help to those who show effort

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Use your imagination and sourceforge.net

Salem commented: It's their lack of imagination which prompted the 1-line of drivel to begin with. But props for closing another one of these pointless project ideas threads :) +17
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Need project idea?

sourceforge.net biggest collection of opens source projects from which you can get idea for sure.

Thread close, no need to call upon ghosts.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

im renn can you help some graphics program to do coz 8s my big project in 1st. college pls reply hope u will read and appreciate this comment.

Do not reply to old threads if you not gone post solution. If you need help with your project create new thread, well explain in full sentence English and of course do not forget include relevant coding.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

For all students looking for mini or large projects in any language. Please visit sourceforge.net get ideas.

Thread closed.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hint
Create class Product that is able to store following data
Enter product id
Enter product name
Enter product price

Make the Product class available to your application.
Use a Collection like ArrayList, List, or Vector to store data of every product.
Provide logic that will do discovery of most expensive product and calculate average.

So please start working on this and when you get problems post

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

sourceforge.net plenty ideas to go through

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There must be reason why that error is thrown.

Please post relevant code and do not forget include stack trace of error

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm still a newbie and I'm trying to learn...

Forum rule is We only give homework help to those who show effort.
What is the best way to learn? By practicing and making mistakes from which you hopefully learn and avoid them next time. So if you please get to work, show us what you did and tell is where is problem.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Provided example is from Apache with badly secured PHP. As far I'm aware this wouldn't work on Java web server/container even if there is no security. Login basically enables you to set valid session for users that have access rights, so if anyone without login details try to access same page will fail as session would be false. To add to "general confusion" you can manage web.xml file on your web application where you can mask servlets and JPS alike, simples example of masking can be found here (Head First Servlets & JSP, 2nd edition)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

And I was wondering why, especially you, didn't point him to that obvious resource. :)

There is an opportunity to get new comer to learn something on his own will instead of letting the person just copy solution. I thing we need to change attitude of posters from coming and getting code to committing to learn about the thing they came here in first place and maybe going the extra mile of learning something else on top of it.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

We do not care if you new to Java or "seasoned warrior". We have golden rule here which says We only give homework help to those who show effort. So what did you do so far and where is problem?

PS: Members, please do not point obvious resource.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What is the last date to cast ones e-ballot and most importantly what the winner takes home :D

I think it was set for 1 month so it is already half-though.
I will settle for good feeling that people appreciate what I do.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
public class users {	
	private String login;
	private String Password;
public void doGetP{
	
    out.print("Password:"+request.getParametre("Password");

}
public void doGetL{
	
    out.print("login:"+request.getParametre("login");

}
public void doSetL{
return login;
}
public void doSetP{
	return Password;
	}

}

And what is meaning of this code? It is not relevant to question!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Use Apache POI library, google for examples there are plenty..

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Message is simple, we do not care when is your assignment due. We do not care what is your skills level. However we do care if you attempt to work on it and not just copy & paste expecting someone to solve your problem.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
Salem commented: Damn right we do +17
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You sound like zero imagination...
cd collection
dvd collection
book collection
recipes book
address book
building visitors book

Just look around and use that little grey matter of yours...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hello All
I am a Hire Drupal Developer and Having 4+ years of experience in Drupal/PHP/LAMP Technology.Please visit us on
<URL SNIPPED>

Congratulation on replying to 2 years old thread...

Thread closed.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

mmmmm tell me how cuz am new user here :-)

[code=java]your code here [/code]

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I can't even vote for myself, because I'm not an option in the poll :)

Self-promotion, you sure to be banned ;)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

That is funny because in my book on pg.81 is something like this ;)
And yes PATH declaration is correct, but it is also good idea to set another environment variable JAVA_HOME with the location to Java installation but without \bin

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1) Learn more about Java web development, these days people do not use out.print to display HTML tags
2) Divide your code in according to Model-View-Controller
3) Have look on good tutorial, like this one or even better learn how to use Apache Commons

shalabhgarg commented: thanks +0
kvprajapati commented: Good advice. +6
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1)You should always post error you getting
2)Line 93 if statement is with capital "i"
3)You are missing brackets for your first if statement on line 92
4)Line 95 is not a Java expression. Haven't you been given rules about consolidation?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

>Somebody suggested me that mobile phone with Skype would be cheap and good option.
Say thank you to that person but your application will not able to communicate with Skype as their API is still not publicly available. There been some suggestion that will open source soon, but soon can be 1 month up to years

As in regards of libraries to be used I do not think CMU Sphinx or PocketSpinx will help you as you need something that is capable to communicate with Java Microedition. Besides you already getting some advice here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Closing thread because is attracting attention of lazy students and shameless project sellers.

Nick Evan commented: Bravo! +10
Salem commented: Nice shootin' Tex +17
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

anybody,
can u help me in this
how to run an exe file which is generated through c program in java

its urgent
plz

Read all previous replies. Your urgency unfortunately doesn't mean anything to us.
Closing thread as there is no need for more bumps to reopen thread and where posters are lazy to read all posts there.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@GiRL,IT your use of language is unacceptable. Please make sure you read forum rules where you will find something like

We strongly encourage all posts to be in full-sentence English. Please do not use "leet" speak or "chatroom" speak.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i already installed java when iam trying to install netbeans ide jdk not found error coming

What version of java did you install? Did you set the PATH fro it? What version of NetBeans you trying to install and which package?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here is working sample based on code provided by you

import java.lang.*;
import java.awt.*;
import java.io.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.text.*;
import java.util.*;

public class FrameExample{
    
    private JFrame frame;
    private JMenuBar menuBar;
    private JMenu fileMenu;
    private JMenu optionMenu;
    private JMenuItem newFileItem;
    private JMenuItem openFileItem;
    private JMenuItem exitItem;
     
    public FrameExample()
    {
    	frame = new JFrame();
    	menuBar = new JMenuBar();
    	frame.setJMenuBar(menuBar);
    	
    	newFileItem=new JMenuItem();
    	newFileItem.setText("New");
    	newFileItem.setToolTipText("Click to open new file");
    	newFileItem.setActionCommand("new");
    	newFileItem.addActionListener(new ActionListener(){
    		public void actionPerformed(ActionEvent ae){
    			JOptionPane.showMessageDialog(frame, "New File Chosen","New File", JOptionPane.CANCEL_OPTION);
    			/*Be carefull with declaration you used only 3 arguments with this method 
    			 *where there is option only for 2, 4, 5 and 8 arguments.
    			 */
    		}
    	});
    	
    	openFileItem=new JMenuItem();
    	openFileItem.setText("Open");
    	openFileItem.setToolTipText("Click to open existing file");
    	openFileItem.setActionCommand("open");
    	openFileItem.addActionListener(new ActionListener(){
    		public void actionPerformed(ActionEvent ae){
    			//action here
    		}
    	});
    	
    	exitItem=new JMenuItem();
    	exitItem.setText("Exit");
    	exitItem.setToolTipText("Click to Exit");
    	exitItem.setActionCommand("exit");
    	exitItem.addActionListener(new ActionListener(){
    		public void actionPerformed(ActionEvent ae){
    			//action here
    		}
    	});
    	
    	fileMenu=new JMenu("File");//missing menu name it would be not visible even if added to JMenuBar
    	fileMenu.add(newFileItem);
    	fileMenu.add(openFileItem);
    	fileMenu.add(exitItem);
    	menuBar.add(fileMenu);//never added to JMenuBar
    	frame.setJMenuBar(menuBar);//JMenuBar never added to frame
    	
    	frame.addWindowListener(new WindowAdapter(){
    		public void windowClosing(WindowEvent we){
    		int result = JOptionPane.showConfirmDialog( frame, "Do you really Want to exit?", "Confirmation", JOptionPane.YES_NO_OPTION );
               if( result == JOptionPane.YES_OPTION )
               {
                  System.exit( 0 );
               }
    	}
    	});
    	frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    	frame.setSize(400,400);
    	frame.setTitle("A Frame");
    	frame.setVisible(true);
    }
    
    public static void main(String[] args)
    {
    	SwingUtilities.invokeLater(new Runnable(){
    		public void run(){
    			new FrameExample();
    		}
    	});
    }
}
BestJewSinceJC commented: helpful +4
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As you already found out you can not check for something that is not there, something you did not declare.
You may consider simple work around like this if (i+1 != nubArr.size()) taking in consideration that i+1 can only be smaller than or equal to array list size, as for loop will not let you go over array list size

ryno365 commented: Helped me with a problem. +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Try out a web application for organizing personal information....

Congratz on your timely reply, since this thread was created I had time to finished my BSc and also finished my MSc. So I guess nitrate has at least 3-4 years of industry experiences and have no need for your suggestion.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Thirusha correction, you can do DB connectivity with AJAX which is essentially JavaScript ;)

sknake commented: nice to see you solving in the mssql forum :) +6
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In your project create create new package "lib". Right click on the project and select Properties. In the pop-up window, in CATEGORIES (left side listing) select Libraries & Resources >>on the right press Add JAR/Folder and navigate to place where is the driver or any other library you wish to add >> highlight file/s you want to include and press OK.


However if the projects are just learning (no-production) you may want to just create a directory somewhere on the disk that you can re-use for attaching Connector/J. In this scenario just skip the section for package creation and go directly for adding resources.

javaProgrammar commented: peter is a good programmer. I like suggetions posted by him. +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Ahh hell, I forgot about connector and it dependency on classpath.
To beat this either set classpath or use following in command prompt/line

//compile
javac MysqlTest.java -cp mysql-connector-java-5.0.8-bin.jar
//execution
java MysqlTest -cp mysql-connector-java-5.0.8-bin.jar

Change the name of the application and driver name in regards what you have.

import java.sql.*;

   public class MysqlTest
   {
       public static void main (String[] args)
       {
           Connection conn = null;

           try
           {
               String userName = "root"; //change it to your username
               String password = ""; //change it to your password
               String url = "jdbc:mysql://localhost:3306/test";
               Class.forName("com.mysql.jdbc.Driver").newInstance();
               conn = DriverManager.getConnection(url, userName, password);
               System.out.println("Database connection established");
           }
           catch (Exception e)
           {
               System.err.println("Cannot connect to database server");
           }
           finally
           {
               if (conn != null)
               {
                   try
                   {
                       conn.close ();
                       System.out.println("Database connection terminated");
                   }
                   catch (Exception e) { /* ignore close errors */ }
               }
           }
       }
   }