Sbucareer's Posts
Nairaland Forum › Sbucareer's Profile › Sbucareer's Posts
1 2 3 4 5 6 7 8 ... 16 17 18 19 20 21 22 23 24 (of 38 pages)
Addition to the tutorial, I would like to introduce a framework for building a front-end web application. In Java web application development, there are many frameworks for building web application. The choice of technology makes it even more complex to developing java application. The series of these frameworks has contributed immensely to the complexity associated with Java technology. But once you learn the idea and probably one framework, the rest will be much easier to adapt. Let look at these technologies. 1. Hibernate 2. Strut 3. JSTL 4. JSF 5. Spring Hibernate, a relational persistence for Java and .NET, it is a powerful, high performance object/relational persistence and query service. Hibernate lets you develop persistent classes following object-oriented idiom - including association, inheritance, polymorphism, composition, and collections. Hibernate allows you to express queries in its own portable SQL extension (HQL), as well as in native SQL, or with an object-oriented Criteria and Example API. You can conduct your internet research on the other following frameworks. But we are going to use JSF (Java Server Faces) JavaServer Faces (JSF) is a Java-based Web application framework that simplifies the development of user interfaces for Java EE applications. We will not worry so much about object relational mapping, rather we will concentrate on UI (user interface), hence we will be using JSF. |
Talkman, I have received your emails and am in the process of sending them to you. I have not had my day off yet. So I would not be able to go and enquire about postage and package. As soon as I do that I will let you know. Thanks. |
Is that why you must type all your message in capital letters, SVD? |
Remember what I said in a previous thread that before you start any GUI development it is good that you have idea of what it is that you want to develop by sketch or drawing of the proposed GUI. I have a simple GUI that I would proposed, but it is of no less the most better one, if you have a better proposed GUI, post it here so we can agree and develop it. As soon as we agree on the GUI, we will start the development. Meantime, acquaint yourselves with the API's above.
|
To start writing Audio application, we will consider the platform that we would be most suitable for it suppose and supports for API and it availability and ease of use. We will use Java API to write application that would aid us in converting any audio format to .mp3. Before we start analysis and programming, we will look at the Java API for audio format. The Java Sound API specification provides low-level support for audio operations such as audio playback and capture (recording), mixing, MIDI sequencing, and MIDI synthesis in an extensible, flexible framework. To start development we would like to know where all the API lives in JSE (Java Second Edition) javax.sound.sampled javax.sound.midi Acquaint yourselfs with these API, we will later make use of them. Right now, we will develop a GUI, using Swings from JSE that will form the user interaction. |
You see the problems in the middle east has reaching it climax or has already gotten to it. Remember that it was on May 1994 Israeli troops withdrew from the Palestinian towns and refugee camps of the Gaza Strip, and the area came under Palestinian authority. Palestine has fought a fight that is not necessary to their merit. Hamas, Hezbollah and PLO has fought the same fight right from the time Egypt occupied West bank for their military strategy to defend themselfs from Israelites. Palestine Muslims making 90% and 10% Jews. The thing is that Muslims in every part of the world thinks that the earth should belong to them and that we should have only one religion. Remember, IBB change Nigeria to OIS (Organization of Islamic State) in 1990. This is a typical Arab people fundermental idea, that the world should be an Islamic state. Well, with the situation in the middle east particularly Israel and Palestine, The Palestinian government should have interceded, when Israelis accused them for kidnapping two of their soldiers. Instead their allow Hamas and Hezbollah to reign supreme and the only way to response was military strikes. Syria and Iran, I feel sorry for these people. They should remember that President Gorge Bush has plans for Muslims especially the terrorist and unfinished issues with Iran. If both knuckle heads (Syria and Iran) do not bifurcate themselfs from these delicate issues, we should see another world war. The conflict is beyond kidnapping of soldiers and territories occupancy. |
If you want to get the default look and feel of any operating system from a Java application, use this line from you static void main (String args[]) [glow=blue,1,2] try{ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); }catch(Exception e){ e.printStackTrace(); } [/glow] The API is in import javax.swing.UIManager.*; This will automatically get your operating system default look and feel. It will not use Java look and feel anymore, it will use the system properties default settings. |
Install the latest Microsoft patch. If you are using windows 98/ME/SE, remember that MS has stop support for this windows OS. Microsoft has a new way of verifying if you are using a correct product key, if not you would not be able to download latest patch. The problem is to do with some corrupt dll library. Another drastic measures is to re-install your window version. I will not recommend this. Another way is to uninstall Internet explorer. Use the original window installation disk and reinstall Internet explorer. |
kananyi: I Am Bored: What Else Is There To Do On The Internet?Nothing, Disconnect your Internet connection or stop going to the cafee. Instead read books and believe whatever anyone says to you in a heart beat. |
Are these question not really self tutored, if you are a programmer why would writing a counter and how to get IP or Host information into your web app very difficult. When you need knowledge like that, people will be willing to do it for you for a fee, via experts-exchange They would be very happy to even write the counter services for you, so you can just expose their API to your application if this makes sense to you. Here, we share ideas and help debug codes not provide solution, particularly those solution we know if you really think about it yourself you can solve it and provide your solution for newbies to learn and use in the future. The solution you ask is very simple, try and [glow=red,1,2]RTFM[/glow] of you Visual Basic and the solution would be staring you in your face. |
Throw your system away. Joking, well if you have USB stick/memory go to internet cafee and download it into your memory stick, go back to your PC and install it. |
Thank your Seun. |
Sorry chilele, I have just sent it to you. |
Neoteny, like I said send me your details and I would correspond with your from there. Neoteny, you are my guy for the damaged laptop, so send me your details in my email not here regarding where to send it. Talkman, I am still waiting for your details via my email. [email=valentine.obih@gmail.com?sbuject=Laptops and Mobile Phones]Here is my email address[/email] |
Download WinZip program and install it. It comes as a shareware, some functionality would probably be disabled like zipping a file. But try and see if the zip is enabled by going to file menu of the winzip program and selecting new Archive, a dialog window will pop up, type the name of the zip file in the dialog filename and click OK. Another window will pop up. Use this window to add all the file(s) you want to zip and click on add to add other files you want to zip. You zipped file will appeared like a zip icon on your target destination with the name of the zip you supplied. You can add more file by double clicking your zipped file and clicking add icon. After zip, don't make your zip file .exe leave it at .zip extention and upload it to your email program and transfer it to anywhere you want to. Remember that the recipient email server must have the correct amount of space of the file you are trying to send.
|
Darth, word!!! |
Talkman, Send me your address in Lokoja, Nigeria and make sure you can receive package safely from the address. I will send you the courier name and tracking number when I send it. Tell me the identity you would want the courier man to ask before the package could be delivered? As soon as I get your address through my email I will send it to you. I have not yet enquirer about the postage yet. But I will only afford £20 like I said earlier towards the postage. Also, I have an old laptop that is not working at all. I think the charger socket behind the laptop is damaged, if another person wants it let me know my being the first person to post comment after this. I will also afford only £20 towards the postage. |
Yes Gbenga, I am still compiling the course structure and exercises for the web application development and I want people to accept the change from standalone to Java web apps. JavaScript is not anywhere related to Java and do not have the same syntax. But they share the same Object oriented paradigm. Like in Java, what you need to know is the Object tree of JavaScript i.e. You need to understand the methods and function and public attributes of JavaScript: 1. Window 2. Frame 3. Location 4. History 5. Document 6. etc Learn all their methods and Events Handler, with a little knowledge of programming language you should be fine. When writing Javascript for a web application, make it modular by writing your Javascript code in a separate file and import it into your web application. Don't write your Javascript directly into your web apps, it makes it unprofessional. For example have a file called example.js function a_message() { alert('I came from an external script! Ha, Ha, Ha!!!!'); } Save this file as example.js In your html, jsp, php, have it imported as <script type="text/javascript" src="example.js"></script> <HTML> <HEAD><TITLE>Tutorial</TITLE> <script type="text/javascript" src="example.js"></script> </HEAD> <BODY> <A HREF="javascript:a_message()">Click for a message, </A> </BODY> </HTMl> This will have exactly the same effect as writing the code into a web app, but is much better because now: 1. It's easier to update our code. If we want to change what the helloWorld() function does, we only have to change it in one place, and those changes will be reflected in all pages that include the hello.js file. 2. It's easier to manage our code. If you come back to a web site project, it's much easier to find out what's doing what if your styles (CSS) and functions (JavaScript) are kept separate from your content (HTML). These benefits increase as sites get more complex. 3. The browser should only have to download your JavaScript code once, no matter how how many pages use it, because it can cache (i.e. remember) the external file. |
I still have not heard from Maxjax? Maxjax reply me as soon as possible. |
Aren't these applications shareware? Basic, you can follow their advice and download these shareware application, which only gives you some limited functionality and could even fry your sound card. Free things are not fully tested and the developer do not bear any responsibility for system damage. As a developer, this is how people download trap door to their machine and tomorrow they would start complaining that someone is charging their credit card and that monies are missing from their bank account. Someone with dubious mind could use a free software and create a gigantic cluster of virtual network without you knowing it. Your PC will be used to commite a global crime and the FBI will be at your door one morning and you will be looking at then like a fish. Thread means topic, like this one How Can I Convert Sound Files From .wma Format To Mp3 Format I don't want to mixed this thread with Java code. But if you want it here, we can. |
Basic, if you want a custom program to convert any file to mp3 open up a thread we will write a custom GUI and code to convert any audio extension to mp3. I have done it before, but I sold it and do not hold the license to distribute it again. We will use Java of-course. |
Zip the files or program up. Many email server have a very strong anti virus program running on them. If you try to upload any extension i.e. .exe, .jar, .dll etc, the email server will automatically see it as a virus and stop the upload. What I do is to zip it with WinZip or any tar program. Unix files are not auto executable so zipping your files or program with tarball program will deceive the email server as a genuine file. You cannot increase your web space or email space unless you have spoken to the admin of the email site. Gmail offers 1G free email space. I can invite you if you want. Just leave your email address. |
I wonder why people always think that love MUST last, especially the first love. I am talking from experience. Let me ask a question, Did you always passed all your first exams? Did you always get the job you wanted at first? Did you always get what you ever wanted in life at first? You will see most if not all of the above answer is no. You will be a fool to end up with the first person in your life. I said this because one experience is never always better. It is like taking exams and reading only one text. Also remember that it is not all relationship ends up in a sexual one. I cannot begin to imagine why people will want to marry the first people in their life. They must come from a lonely family and desperately want a companion. For a marriage to last very long you need experience like in every other things in life, you need experience skill and even a certificate to prove you know what you are talking about. Also remember that no relationship is the same. I hear people say all women/men are the same. Oh, no they are not the same, everyone is different. Some might look similar but we are all different. With experience you can see at first if a potential candidate suit the job. Personally, I will never marry a virgin, a young girl hence inexperience and a heart broken once because they all have chips on their shoulder. Why do people say you have broken my heart? Well they might have, but if you really look at it they did you a favor and probably helped you in you quest for your soul mate. Remember to succeed in life, lots of mountains and hills has to be climb and many rivers need to be crossed. Don't take it as a heart broken, take it as a challenge and experience and make sure that, the experience never happen to you again. Always enter a new relationship with love and open minded but also use your experience to guide you through that relationship. If you have a chips on your shoulder, nothing will ever work out for you, you will end up saying that all men/women are dogs/prostitute Believe me, this is experience, every new relationship is always better than the other. It is like any new job is always better than the past. Finally, when you spit out rubbish from your mouth don't go back and scrap it back from the floor and eat is back. It is disguising and invites bad luck in life. When you have decide to move on in life carry on and don't look back. Good luck. |
Clocky, you are a funny guy. You make me laugh. It was a good and productive argument and I like your constructive valour. |
Once again Clocky, a Model in MVC is Acronym for Model-View-Controller. MVC was first widely defined in the book "Design Patterns" by Erich Gamma et al. It defines a separation of concerns in a program where the model defines the internal data structures of the program, the view defines how the model is rendered to the user, and the controller performs the actual actions in the program that affect the model. The internal data structure. Where does the application gets these data? These internal data objects that defines the program are coded in Java class. These classes are packaged as a bean called javabean. Some of these data structure do not directly access any persistent storage, therefore must be serialized, which means there state could be passivated or activated. When a class follows these rules, they are said to be javabean. Definition of Javabean, A reusable component that can be used in any Java application development environment. JavaBeans are dropped into an application container, such as a form, and can perform functions ranging from a simple animation to complex calculations or even database access. Lecturing about Java interfaces, well you got it right for once, they are frameworking or pattern for writing application. The only good thing about interface is it ability of encapsulating database and offering late binding in Java, which could boost the speed of your application. Late binding is very difficult to code and debug, because all errors cannot be find at compile time, the errors show them selfs at runtime. Maybe you would lecture me about abstract class or Generics, or even inheritance, any case you lecture will be well taken, one can never know all. You have one fixation about what Model is in MVC, remember people can interpret it differently depending on the application they are developing. Please NOTE that Model in MVC is simply describing the database model I cannot emphasis this more. DAO are java classes packed with a design pattern, probably javabean, DAO that access the data Model of any application by providing the application an internal data structure. I know the thread is for PHP, you only need to understand the concept. Anyhow, many of the design pattern books I have seen is on Java/C++. These two languages are the brain behind the pioneering of MVC and design pattern. Remember that PHP is only a script language while C/C++ and Java are full pledge application development kit including web applications API |
Clocky, listen to yourself, You are repeating what I said earlier. Domain Object. What are domain Objects? Or what components makes up your so much domain Objects? Middleware, hmm, where do your Controller lives? View? or Model? Well they can only live in the middleware components. Don't try and tell me the meaning of these things, Basically Controllers in Java are the servlet/JSP. I don't use Servlet on front-end that make Servlet a good candidate for Controller. It maps all the URL request Objects to a properties file that has pair=value i.e HOME=/jsp/home.jsp Listen, any componet that access network layers, database or some sort of persistent storage or serializable objects are Model. Your so called Domain Objecta are the database. DAO, are javabeans or entity beans that maps each request object to serializable object. There are three types of deployment components in Java application namely: 1. WAR 2. JAR 3. EAR WAR, Web Archive, includes html, htm, jsp, jsf, jstl, jpeg. These makes up the frond-end that could be said to be View from the MVC framework JAR, Java Archive, includes .class particularly servlet that controlls the movement of request response Finally, EAR, Enterprize Archive, includes the WAR, JAR and DAO's, which makes the Model, your so called domain Objects. I may make a typing typo, but don't ever say I am wrong. You need to develop more application from inception to deployment before you can say I am wrong. I wonder how you package and deploy your application? |
If you are following my tutorial, use my private website http://www.digitemsystems.com. This is where I will show you how my temperature will look like. Note I will expect you to show me yours. You do not need a domain name or dns server to resolve your IP to domain name. All I need is the IP of your machine you are working on and I can access your work. If you use dynamic IP, put it into jpeg file and upload it no cheating. Like we did earlier using swing to develop temperature application. We are going to use HTML to design and develop a temperature application. For the temperature to work, we are going to write a javabean class that performs the temperature convertion. We will use jsp tags and manipulate this bean in our HTML front-end. |
Another interesting file is the web.xml under our temperature/WEB-INF/web.xml It should look like this <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>Welcome to Tomcat</display-name> <description> Welcome to Tomcat </description> </web-app> This is just minimal web.xml. We use web.xml to configure our application. From now on, any project should be refered to as application. To configure our temperature application we employ the use of temperature web.xml, more on this later. When you have done all this, I want you to go to your web browser and type http://locahost/temperature or http://127.0.0.1/temperature. You will see a directory listing. This is because we do not have any html, htm and jsp file(s) under the temperature application directory. Remember, our container can now process .jsp extensions |
Now let start by creating a project under the webapps directory. Our project is going to be called temperature. Under webapps create a folder called temperature. Inside temperature create this folders WEB-INF/classes WEB-INF/lib WEB-INF/web.xml jsp Now outside the temperature folder create a file called temperature.xml The content of this temperature.xml should be exactly like this. <!-- Context configuration file for the Tomcat Temperature Web App --> <Context path="/temperature" docBase="webapps/temperature" debug="0" privileged="true"> </Context> Your webapps subdirectory should look something like this
|
Thanks Bossman. Now let start by explaining the requirements for this tutorial. Like I said you need to download Jakarta Tomcat and install it and make sure you specify port 80 as your HTTP default port. There are many interesting directory in tomcat. Assuming you installed a window binary, you would have your tomcat on this absolute path C:\Program Files\Apache Group\Tomcat 4.1 Under this directory, you should have the following subdirectories: 1. bin 2. common 3. conf 4. jtc-src 5. logs 6. server 7. shared 8. src 9. temp 10. webapps 11. work The folder you should be particularly interested are the conf and webapps. In the conf directory the files you should learn to configure them are server.xml and web.xml More about this later The webapps directory is where you create a subdirectory of your project. When you install tomcat and access it from the web browser, the default index.jsp page is under this webapps/ROOT directory. You can replace the default web page with your custom web page. |
Design patterns, a description of a recurrent problem and of the core of possible solutions. There are many design patterns out there today. The most famous one being MVC. It does not necessary depends on any language you use for your application development as you would quickly assume that the link I put up here is for Java. If you cook rice on a daily basis, it would be nice to cook it in a particular way that will facilitate efficient use of time, if your rice would be serve to a large number of hungry customers. You could choose to boil the rice with water for five to ten minutes or boil the water and pour it into a rice and wash it. Since the whole process is all about removing starch and dirts. This is exactly what design pattern is, a very quick efficient way to developing software more than once, with the consideration of: 1. Time 2. Cost 3. Maintenance 4. Robustness 5. Verification and Validation 6. Modularity Software needs all these feature to survive in today's agile software development business. Always remember that most of the people that write software do not stay behind to maintain them. So, using a pattern would help the new programmer or maintenance team and help the software when its life need to be enhanced. I have seen lots of PHP scripts, most are embedded into a HTML file. Some that tries to implement some sort of framework would have there PHP file written separately and call it from a HTML file. It is horrible, that is all I can say. No controller, No Model, you would have to go through a lengthy peace of code to figure out what is going on. It would be nice to have DAO (Data Access Object) in one file, which is the Model. Have the middleware on one file, which is the controller. Lastly, have the View permanently separated from any form of programming including CSS and JavaScript. Have the CSS written separately and Javascript written separately. Modularize the whole application, that is what I think a design pattern is. You would also find that most of these components could be reused in another design saving time and money. The design pattern you choose depends on the application in question. |
In future as a network administrator, buy or tell your organization to buy a backup media. Backup your files everyday, toward the end of business activity. Make sure you have 7 media tapes, give each one seven days rotation. If there is money buy more than 7. To really solve this problem you NEED to know the virus name. I am suprise people are giving you prognosis without the virus name. Anyway, like one member said, read your Event Viewer and Identify the date and id of any process irregularity and take it from there. Anti virus does not protect your PC if you can not update your definition file from the antivirus company. Futhermore, your antivirus is useless if it does not know or heard about the virus before. It is like our immune system, everything is a disease to it, unless he knows that, by having it on its database. That is why some people suffer for diabetes, because the immune system sees that sugary food as disease and he must attack it. They have no way of registering sugar to their immune system database. Even your email or any other things that enter your network card is a virus, unless the antivirus is told, what is a virus and what is not. So, find the virus name and search the internet on how to clean that virus from your system. If you are really the genuine license holder of the antivirus software, send them email with your license key number and tell them exactly what you have told us, you would get more positive answer, since you work for a cooperate organization, I wouldn't see that as a problem, would I? |
1 2 3 4 5 6 7 8 ... 16 17 18 19 20 21 22 23 24 (of 38 pages)