Sbucareer's Posts
Nairaland Forum › Sbucareer's Profile › Sbucareer's Posts
1 2 3 4 5 6 7 8 ... 10 11 12 13 14 15 16 17 18 (of 38 pages)
We are in the dawn of nano technology. The only people that has the nano technology is the Driving digital circuit like chips to emit thousands and millions of pulse per second, which in effect controls the binary and electrical interface attached to it. Now they have deviced a chip that can emit 0.000 000 001, which is 10^-9 or a nano under a second, this technology is mind blowing and I am waiting for it to come down to computers. Earlier I heard someone talking of 20GHz chip. We will be looking at 0.5THz chips. I wonder if it would be in our life time. Reference Nanotechnology goole search |
All you need is wireless NIC for laptop you would need a wireless PCMCIA ([url=http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=deskbar&q=define%3A+PCMCIA]Personal Computer Memory Card International Association[/url]) Install them into your PC or laptop and configure it to work. Next thing you would need is to get the hotspot WEP (Wireless Encryption Protocol) details, if it has one. If it doesn't, them your PCMCIA or Wireless Card will automatically configure itself to internet and boom you are online. But if it requires WEP, you would need the WP serial number and passwd. |
You can use the Programmer's File Editor to compile Java. Just do the following: Compile --------------------------- Command: javac %f Directory: %u\%d execute --------------------- Command: java %n Directory: %u\%d Infact, you can use it to compile any language as long as you the the compiler invoker i.e. Command: <invoker> %f Directory: %u\%d |
No wonder Nigerian's cannot progress futher in life. A forum where deceptive information are bantered, well wether it is for application or any other thing, you do not need a valid card number to do any testing or for that matter any other things. He who use gun to killer for a living must die in the hands of other that uses gun to kill for living, fact. Life is a boomerang, what you give is what you get. Hard work is gratifying and honest living makes you feel good and distribute transferable knowledge, particularly to your kids. |
Borland C++ Compiler 5.5 install and this is how you configure it SET CLASSPATH -------------------------------------- SET BORLAND_HOME=C:\Borland\BCC55 SET PATH=%PATH%;%BORLAND_HOME%\bin Installing and running the Command Line Tools ----------------------------------------------- 1. Run freecommandlinetools.exe; choose the drive and folder into which you want to install the free C++Builder 5 command line tool development system. 2. From the bin directory of your installation: a. Add "c:\Borland\Bcc55" to the existing path b. Create a bcc32.cfg file which will set the compiler options for the Include and Lib paths (-I and -L switches to compiler) by adding these lines: -I"c:\Borland\Bcc55\include" -L"c:\Borland\Bcc55\lib" c. Create an ilink32.cfg file which will set the linker option for the Lib path by adding this line: -L"c:\Borland\Bcc55\lib" Example save this file c:\Borland\Bcc55\bin\bcc32.cfg -I"c:\Borland\Bcc55\include" -L"c:\Borland\Bcc55\lib" save this file c:\Borland\Bcc55\bin\ilink32.cfg -L"c:\Borland\Bcc55\lib" When you type c:\>bcc32 on commandline you should be able to see some info come up Then download Programmers File Editor Make a shortcut to pfd.exe to your desktop. Write a small C/C++ program i.e. #include <iostream.h> main(){ cout << "Hellow World"; }//End main Save as hello.cpp. Remember use the PFE IDE to type up this. Do what is on the picture
|
It is not the estrange white husband that killed them. It is actually a Yoruba man, the police suspect his sick boyfriend. He has given himself up to the UK police. But the police said they cannot interview him yet as his state of mental is deteriorated. A psychiatric spokenman for the mental health people said he was not suppose to be on the street. The news paper also confirm that Mrs Sobo is a very social person with a profession as photographer. She likes going to clubs and house party and enjoy seeing different men whilst married or going out with the accused man that supposedly killed her and two of his children and mother in-law. What a sad story. What will drive a dad to kill his children, wife and mother in-law? Reference Telegraph.co.uk There is lot of correction to my post as the news keep coming in. It was talk of the day at work. I guess I must have heard something else. Please follow the news. The murder is still not yet known |
Look at this
|
gbenga: Will i be right to say that When a class is created, it is created with consrtuctor in a way that if another instance of the class((an object) is created, it straightaway inherit the values of that class?, A new class is created by the help of constructor. You are right there gbenga. But it does not inherit the values of the class. A class is a default template with out value, state or identity. But object has identity, values and state. i.e. Temperature warm = new Temperature(90, 170); warm is the object, it has values (90 and 170), identity is warm, state it is a warm weather. You can query the object warm by using its methods to get the states and values. Remember constructor helps us to set Temperature class to this states i.e. public class Temperature{ private int celsius; //See it does not have state, just template. This could be refered to with using this.celsius private int fahrenheit; //See it does not have state public Temperature(int celsius, int fahrenheit){ this.celsius = celsius; //See the constructor is helping us to set celsius to a state, thus the object will have a state this.fahrenheit = fahrenheit; } } |
[size=18pt] @Gaxton, follow the thread from the beginning. This thread is a very good starting point into learning Java. It does not only teach you some Java, it also teaches you Software Development, which I think is the best way to teach Java. To learn Java syntax, you do not require anyone to teach you what is: 1. Variables 2. Class variables 3. Instance variable 4. function 5. Constructor 6. Setter and getter 7. Primitive types 8. Objects 9. Reserved keywords 10. Conditional loops 11. Data structures like arrays etc 12. Sequence, Selection, iteration 13. Exceptions 14. etc. We can help you with these things but it is up to you to grasp the concept to begin applying them within your programming logic. It is really not hard to understand. If java is too strong for you, start with a procedural language like Modula2, or Pascal. I don't know where to download there compiler but if you do google search you may come up with links to their compiler. But learning programming with these old language will teach you bad programming habits and you will never forgive me. I will recommend to stay with java and give it a hard try for three solid months. Like 8 hours every day for three months, you will not come out of it without gain. Let me let everyone into a secret that I use and you know what, it works for me. If you want your computer to process data quickly, shutdown every process within that computer and run you application uninterrupted till it terminates, it will have more processing power to solve the problem quicker. I have taken that analogy to human. My Pastor said any man that do not dream when sleeping is a dead man anyway. He is right, we MUST dream. I have used this dreaming as a tool to solve most of my problems. You know when you are sleeping most of you body functions is shutdown i.e. walking, talking, smelling, vision, etc. if you commit a task to your brain it would be solved quicker at night. Try it, it works for me. But the difficult bit is, how do you commit a task to your brain when sleeping. It takes time to learn it but what I do is to start thinking of the problem whilst laying on bed, make sure that you think of nothing apart from the problem till you fall asleep. You brain will only recognize that input before committing itself to sleep. It will try and process it and come up with answer when you wake. Think of Java before you sleep, believe me when you wake up most of the issues will be solved for you, it is amazing phenomenon and it works for me. You should give it a try. [/size] |
[size=16pt] Reference : Telegraph.co.uk [/size] |
parosky, your code will not compile. You also failed to understand the nature of instance variable. You got it right that the first class was a class wide variable, thus it belongs to the class. The second class however do not belong to the class varibale, rather it requires and instance of the class, hence instance varible. public class Testing{ public Testing{ //What are you doing here? Is it a constructor or something else public int age = 3; //Even if it was a constructor a public keyword would not be used here } public static void main (String[] args){ System.out.println( age); //age is still not an instance variable } } Do you mean public class Testing{ public Testing(){ int age = 3; } public static void main (String[] args){ System.out.println( age); } } Still it will not compile. You seem to know what you are doing Parosky but think hard, putting age inside the constructor do not make it an instance varibale. @Taysay Do you know Java enough for me to start [color=magenta]WEB DEVELOPMENT USING JAVA[/color]. The prerequisite for [color=magenta]WEB DEVELOPMENT USING JAVA[/color] is Java. If you do know Java, download Tomcat 5.x or Netbeans 5.5, it comes with tomcat. Configure and set all the necessary classpath i.e. SET JAVA_HOME=c:\<java_directory>\ SET TOMCAT_HOME=c:\CATALINA_HOME\ SET PATH=%PATH%;%JAVA_HOME%\bin;%TOMCAT_HOME%\bin CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\common\lib\servlet.jar Show others how you managed to setup your environment by posting it to the forum so that other that are interested in the thread will follow, then I can begin to teach you WEB DEVELOPMENT. |
public class Testing{ public static int age = 3; public static void main (String[] args){ System.out.println( age); } } ------------------------------------------------------------- public class Testing{ public int age = 3; public static void main (String[] args){ System.out.println( age); } } Can you tell me why the second class failed at compile time and how would you fix it by making age an instance variable? This small exercises will make you to understand very important fundamentals with java |
[size=18pt] Remember that Java is OOP (Object Oriented Programming) so objects has to be encapsulated within a class. Thus, all the attributes and methods of a class are encapsulated within the object. Furthermore, any inferring object could access all the contents of an object. Sun tried to limit the access to their inference by protecting the attributes and methods by using private, public and protected keywords. Look at it this way that if I transmite and object through a network i.e. from one Pc to another Pc and some clever person is able to get hold of the object, he would never be able to access the private and protected information of the object. The isTemperatureWorking method is protected because it does not return any of our private attribute. Remember we had private int celsius; private int fahrenheit; You cannot do this Temperature cold = new Temperature(-3, 8 ); int theCold = cold.fahrenheit; But you can do this private int celsius; public int fahrenheit; Temperature cold = new Temperature(-3, 8 ); int theCold = cold.fahrenheit; Because you cannot access private attributes from an instance object, we use a public keyword to deceive the program to return fahrenheit i.e. public int getFahrenheit(){return fahrenheit;} We do not want anyone to access the isTemperatureWorking() because it does not return any attributes, just a boolean testing. If someone ever get hold of our program in the form of object he would find it very difficult to understand what we are doing because we do not expose the isTemperatureWorking(), hence he would not be able to see it. If the object is accompanied by another instance object within the same package, and we used isTemperatureWorking() in a public method, that person could figure out what the method is doing by looking at the algorithm. If we wanted to make it very difficult to read we will declare isTemperatureWorking() as a private method. Every private attributes or method cannot been seen by other instance object, even you the programmer. [/size] |
Java has always been an open source technology. That is why we have companies like JBoss, IBM, BEA, Netbean etc are all using java core technologies and charge you for a well presented specifcation development like J2EE or JEE etc. Download any JDK and sun will package the core classes in a file called c:\j2sdk1.4.2_11\src.zip, from here you have a blueprint of all the architecture of java but not the compiler. Unlike Microsoft and other close source vendors, MS use .dll, .com to package their win32 or VB6 etc programming core APIs. |
Good, well done Gbenga, where were your brain all these time? Now you having beginning to understand the notion of 1. Attributes 2. Methods (Private, Public and Protected) 3. Constructor The diagram have only one minor mistake the bottom right hand should be public not private. Your methods should depict what they accept or return i.e. -------------> celsius:int <------------ celsius: int Now, can you tell me why the isTemperatureWorking method is protected? And why the constructor takes two arguments? Note ----------- Your constructor is wrong, constructor can NEVER return and argument. If you can understand why it takes two arguments in the Temperature class, you would see that it does not need to return them back, hence <--------------- celsius:int <-------------- fahrenheit:int Constructor MUST have the same name of the Class. Here is a constructor signature of a Temperature class public Temperature(int celsius, int fahrenheit) You see, it does not say void or stipulate to return anything. A constructor help to initialize an instance of a class to an object that has initial state, aggregate values, behavior and well formed attribute. If you can understand this line you can answer my question above. I do not claim that this is the proper definition of a constructor nor do I agree to support your argument in any event that it challenges the academic acumen. It is only an indication of a meaning, hence constructor. Here is examples Temperature cold = new Temperature (-2, 10); Now cold is and object It has an initial state (which could be cold or hot) It has aggregate values ( -2 + 10 = 8 ) It has a behavior (getTemperature) Remember without state, getTemperature will not behave, thus return null; Its attributes are formed by our construtor Hence we can get the current temperature String theCold = cold.getTemperature(); |
@Prodgalson, I have matured more since I joined Nairaland. You will NEVER see me arguing with anyone . Everyone is entitled to their opinion, hence freedom of speech. Infact, I have learned so much from criticisms. I will never take offense and would rather learn from it. If you noticed right from time, pardon me never seize to come out from my mouth. Let me use this opportunity to say this. I do not claim or believe I know more than anybody in Nairaland relating to IT or try to prove that I am jack of all trade in IT. I have noticed many brilliant people here with limited access to IT devices and software including internet connection problems. Given the opportunity I had, they would be undoubtable good in IT. My knowledge span several years of dedication and some commercial experience, beyond that we are all the same. So please don't get me wrong in any other way that I am trying to be noticed and knowledable. What I post here are all part of my experiences and skills, nothing more nothing less. I hope I have cleared the air. We should look beyond who knows what and work hand in hand to achieve a goal. I always believe that students always become better to their teachers. |
Good that you are beginning to understand the programming concept, I will look forward to receiving your classes |
seun: The problem with python is that it's more inefficient and bloated than it really needs to be So if you use it for web applications or desktop applications, your programs will run slower and use more memory I agree with Seun. Python is very productive script language. It was developed in 1990 by Van Rossum, his initial strategy was scripting, like Java, Sun initial strategy was web. But python is used in large areas of programming including the initial concept, which is scripting and now includes GUI, web, OS, RedHat uses python for their installation script. Python is relatively slower compare to other languages. But this is not noticeable on a small application but will definitely on a large enterprise information systems. @Alex, I just noticed this post, why would you want to learn or teach python? Python is dead easy to learn. You don't require anyone to teach you python. Are we spoon feeding these newbies? There is no college or university that will start yo with script language or python, the premise is to teach fully fledge OOP language like C++/Java. If you can comprehend these languages learning python would be like drinking orange juice |
[size=18pt] Taysay, click on this link and bookmark it. I have the book but not the soft copy. The book do not come with softcopy. It was recommended by Prof Fintan as he was our lecturer then. Also remember people in the academic acumen has criticized his method of teaching software development. Most of the methods he used was invented and developed by him, like the Class diagram, Object diagram JSP (Jackson Structural Programming), instance diagram. I find his teaching method adequate for undergraduate. His teaching may have become abate as he is more into research and publications now. The only thing that I think that make his teaching formidable is his coding style. But go through the link(s) I posted above and follow is teaching, it will certainly help you. Do not hesitate to ask question if you do not understand any pointers. [/size] |
Read the last post before mine. Sometimes the topic of the post do not bear any correlation to the discusion, hence the argument may digress to facade a point or a learning curve. My post may have motivated the guy to learn ant or may even have changed his direction to understanding ant. If you understand my post, many people may not, and could facilitate or trigger another new direction to their learning. Off topic or no off topic, I wanted to show the guy the use of ant script. If you consider my post off topic, next time just pass my post when you see sbucareer No knowledge is a waste! Note ----------- The post was copied and paste from my report paper. I did not edit it. If some information you find within the ant script annoyed you accept my apologies. Don't think I am a show off. Most of my post are very late at night or early hours of the morning, hence I do not edit most of them. Most of them have even got spelling or grammer errors. This is to to with the fact that I am very busy thesedays and I am trying to keep up with this forum and other forums that I service. Seun, you have exclusive right to edit my post if you see fit, I will never complain. |
chuksloy, I personally feel sorry for you, particularly "Getting on the roof" issue. What a marvellous work and dedication but you need to work harder on your concept or motivation of developing the site relatively to do with making money from it. Have you ever had what they call Web Crawler? Register and browser some academic research papers on past articles or essays on Search Engines. You cannot optimize your fantastic website (IMO) by just adding web links to your database that is the job of a Web Crawler. You job will be to consult a mathematician, or like you have the time, you could study Differentiation and Integration in maths and study lots of Sets and logic theories to come up with a prevailing algorithm to run through your millions of turples on your database with few nanosecond. When you have achieved that tell me I will help you with some few concepts I have as to making money with search engine. Example of web crawler program The challenge in developing a marketable search engine is within your algorithm that is responsible for indexing the internet in such a way that search by users is delivered with limited time frame, we are talking of nanoseconds. All you do is to write powerful triggers, SQL, create table indexes etc within your database that hold these queries. My recommendation if you are really serious to embark into it, don't mind people like Seun saying "What is the use of a country search engine” the purpose lies within your actual motivate and marketing strategy. Links that start from A-E on database instance, F-J one instance, K-N one instance, O-R one instance, S-Z last instance. Mind you all are within one database management System. This will reduce the load a a single database instance, thus on one machine will definitely reduce performance. To achieve total process independence and time factor you will require running them on a separate machine, it could still be one DBMS but then the issue of bandwidth will come up. The final solution would be to invest on oracle grid computing, but this is way out of the scope for now. Develop a web crawler first to populate your DB and write a caching algorithm as well to store frequent search path to reduce the burden on your DB. Then come and talk to us here for further help. I strongly believe you can break through; there is not solution like this on the African continent. If you are listening to news and are following future market and global market. Africa is fast developing by 1.6% GDP every year, thanks to our new creditors, China with low interest rate we can afford and the West do not like it. What haave they done for us said one of the Chinese international economic spokeman? He said that the west achieved slavery, poverty and incitement of war. Anyway, I see the West falling in the next 10 years. With US economy under calculated deprivation, Saudi Arabia Construction boom, India Technology acumen, Africa growing at the rate of 1.6% GDP, Sudanese billionaire Mo Ibrahim offering $5 million every year after retirement of a good president of African country, Now Cofe Anan and many African president are now in serious negotiation for China to transfer technology to Africa and it looks promising and the West do not like any of these things but they do not have a choice because their time is coming to and end like any other empire on earth it last for a while and other people take over. My friend continue with you idea and don't get demotivated, time is just round the corner and your idea will emerge. |
Register to this practise test for UK theory driving test and see the sort of application your sort to develop, that will give you an insight. |
Do you need a solution or help? If you need help, first: 1. Design the database schema [Database table and their relations] 2. Use tomcat as your container [Since you would be using Java as the development tool] 3. Using JSP as your front controller and Servlet as you container listener 4. Using DAO (Data Access Object) as your relational mapper to your database, hence java POJO (Plain Old Java Objects) 5. Develop your questions and populate them into the database schema, thus with your answers 6. Develop a POJO threaded Class for your timer 7. Design the UI (User Interface) 8. Tire them together. At any stage you get confused come back and ask questions. I think you would definitely come back for session problems and URL redirecting, till them do some work. If you need a solution, I am open for consultancy, thus I need money now that I am studying till 2011. Note Do not try any EJB or Spring business. You could, but would require a great deal of Container knowledge and lots of other technologies like XML, Hibernate, Strut, Annotation, JNDI, ANT etc. Although you will encounter this with tomcat, it would be minimal |
Here is an ant script that I am using to develop a benchmark application for a core argument on my thesis. You can modify it to correlate your application. Tutorial on ant is here <?xml version="1.0"?> <!-- ======================================================================= --> <!-- JBoss build file --> <!-- ======================================================================= --> <project name="JBoss" default="ejbjar" basedir="."> <property environment="env"/> <property name="src.dir" value="${basedir}/src"/> <property name="src.resources" value="${basedir}/src/resources"/> <property name="jboss.home" value="${env.JBOSS_HOME}"/> <property name="build.dir" value="${basedir}/build"/> <property name="build.classes.dir" value="${build.dir}/classes"/> <property name="build.javadoc" value="${build.dir}/javadoc"/> <property name="classpath.dir" value="${env.JAVA_HOME}"/> <!-- Build classpath --> <path id="classpath"> <fileset dir="${jboss.home}/client"> <include name="**/*.jar"/> </fileset> <!-- So that the application hass access to jar files for this particular project --> <pathelement location="${build.classes.dir}"/> <!-- So that we can get jndi.properties for InitialContext --> <pathelement location="${basedir}/jndi"/> </path> <property name="build.classpath" refid="classpath"/> <!-- =================================================================== --> <!-- Prepares the build directory --> <!-- =================================================================== --> <target name="prepare" > <mkdir dir="${build.dir}"/> <mkdir dir="${build.classes.dir}"/> <mkdir dir="${build.javadoc}"/> </target> <!-- =================================================================== --> <!-- Compiles the source code --> <!-- =================================================================== --> <target name="compile" depends="prepare"> <javac srcdir="${src.dir}" destdir="${build.classes.dir}" debug="on" deprecation="on" optimize="off" fork="java$$javac.exe" source="1.5" includes="**"> <classpath refid="classpath"/> </javac> </target> <!-- =================================================================== --> <!-- Package into jar and deploy into the JBoss container --> <!-- =================================================================== --> <target name="ejbjar" depends="compile"> <jar jarfile="build/telebook.jar"> <fileset dir="${build.classes.dir}"> <include name="telebook/*.class"/> </fileset> <fileset dir="${src.resources}/"> <include name="**/*.xml"/> </fileset> </jar> </target> <!-- =================================================================== --> <!-- Ddeploy into the JBoss container --> <!-- =================================================================== --> <target name="deploy" depends="ejbjar"> <copy file="build/telebook.jar" todir="${jboss.home}/server/default/deploy"/> </target> <target name="run.client" depends="ejbjar"> <java classname="client.TeleBookClient" fork="yes" dir="."> <classpath refid="classpath"/> </java> </target> <!-- =================================================================== --> <!-- Cleans up generated stuff --> <!-- =================================================================== --> <target name="clean"> <delete dir="${build.dir}"/> <delete file="${jboss.home}/server/default/deploy/telebook.jar"/> <delete file="${basedir}/build"/> </target> <!-- =================================================================== --> <!-- Build javadoc --> <!-- =================================================================== --> <target name="run.javadoc" depends="compile"> <javadoc packagenames="telebook.*,client.*" sourcepath="${src.dir}" destdir="${build.javadoc}" author="true" version="true" use="true" windowtitle="Tele Book Application API"> <doctitle><![CDATA[<h1>Tele Book Application API</h1>]]></doctitle> <bottom><![CDATA[<i>Copyright © 2006 Ph.D Enterprise Computing London South Bank University. All Rights Reserved</i>]]></bottom> <tag name="todo" scope="all" description="Do all:"/> <group title="Telebook EJB API" packages="${src.dir}/telebook"/> <group title="Telebook Client API" packages="${src.dir}/client"/> <link offline="true" href="=http://java.sun.com/j2se/1.5.0/docs/api/" packagelistLoc="c:\tmp"/> <!--<link href="http://developer.java.sun.com/developer/products/xml/docs/api/"/>--> <classpath refid="classpath"/> </javadoc> </target> </project> |
Use web start from sun.com the JNLP (Java Network Launching Protocol) <?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.0+" codebase="https://www.nairaland.com/webstart" href="webstart.jnlp"> <information> <title>WebStart Demo</title> <vendor>Valentine Obih</vendor> <homepage href="http://www.digitemsystems.com" /> <description>A Java Webstart test</description> <offline-allowed /> </information> <resources> <j2se version="1.4+" /> <jar href="JnlpTest.jar" /> </resources> <security> <all-permissions /> </security> <application-desc main-class="jnlptest.Main" /> </jnlp> Save the file as webstart.jnlp |
@biyoe Read this first then come back and finish my post Let me take you back like 10 years ago when computing began to address enterprise distributed application. The final specification they came up with was CORBA (Common Object Request Broker Architecture) The concept was the partitioning of object regardless its physical location on the network, whether on a host that runs the system or on another host that hose the JVM. Hence RMI/RPC (Remote Method Invocation) for Java and (Remote Procedural Calls) for C++. They use these mechanism to communicate with these object, thus forming distributed application. They never considered lots of issue or may be they did not have time to cover it and left it with developer to do, thus forming myriad task for these poor developers. The issues they never considered were: 1. Securities 2. Database transaction 3. Thread pooling 4. Messages between objects (Chatter box) cause bandwith problems during system scalability 5. Distributed database 6. Maintenance 8. Persistence A typical project that today take 3 months to finish back then takes 3 years. This was due to the work developer had to do, writing all the above services that the application will be deployed in. Look at example of a simple corba application that is today EJB. You need 7 java files and need a lot of java switches to convert the IDL to java file and the rest. If you look at the code there is no container deployment just like POJO's. When you finish compiling you will need to take each piece of code to the machine or host it will reside and the Client to all the client machine they would reside. If you are in a bad luck the application need to connect to some database, you will need to write the 2PC/3PC first to take care of the ACID (Atomic Consistency, Independent and Durability) After that you would need to write all the SQL statement. Then you would need to worry about the thread states, you do not want someone to be withdrawing money from the ATM and inside the bank at the same time. Security like authorization and authentication, verification, process validation and objects verification and path access authentication. In the database side you need to take care of Pooling manager, if you don't, your application would look like connecting your application to Microsoft Access database. Sun came with a solution J2EE, an application server to manage CORBA and EJB container to manage transaction and security etc. God bless them, they got it right just that they were too enthusiastic and over engineered it. Like I said in my previous thread, EJB is not suitable for all project. It is good for enterprise wide application development. Bioye, Tomcat is a web server not and an application server. Understand the difference between web server and application server. Both container serves different purpose. Can you write a GUI application and the application can access tomcat server? The answer you are probably looking for is NO. Because it is NOT an application server, it is just a web server, hence it does not use RMI/RCP to communicate to objects it uses HTTP/HTTPS Although, the same people that introduce all these light framework for the place of EJB has also introduce some EJB container that could be plugin into tomcat, I wonder why? Tapestry, Spring, Hibernate, Strut, etc are just simple framework for writing light projects not good for enterprise wide application. Remember all these are JUST FRAMEWORK like EJB, just that EJB specify some strong rules because it has taken care of so many features for you and moreso it has lots of plumbing codes. If you can't express yourself in code then you are not an IT guy simple. Don't morn all the time that EJB has too much coding, yes it has and we all love it because if you do people think you are clever and pay you more money. |
[quote author=@my2cent]I am not a JAVA coder but those I know who are, swear by IntelliJ. My assumption is that it probably isn't that popular because it has to be purchased, as opposed to Eclipse, say, which is basically free (well, unless you want to dabble with myEclipse )[/quote] IntelliJ is probably a good IDE. There is industry IDE for big project and commercial IDE for small and medium project. I have not used IntelliJ and have not really capture its essence in the IT community. What you have to understand is that Eclipse and Netbeans are industrial IDE, they have features many of us don't use as we do not need it. Like the CVS, Peer Review, Refactoring, Model-driven testing, agile methodology like JUnit, Code synchronization, Quality monitoring, connecting to a central server, documenta, etc. These are just few I can remember. If you work in a project you just don't have your code sitting on your machine. You have to send it to a central server, hence checkin and checkout. Other people have to review your code and many more server side things you can do with these IDE. You have to write a JDT for plugin platform to virtually plugin all your in house software with eclipse. You can even write a plugin to integrate intelliJ into eclipse as one application that is how powerful eclipse is. |
[quote author=wale_oau]i would go for netbeans anyday anytime, it is richer than eclipse. i wonder why IBM venture into software, they a hardware company and i think they are good at that.[/quote] Remember that IBM (international Business Machine) run compatible software on their Pc called OS/2. If you work for IBM or have a friend that works for IBM she/he will tell you that IBM do not use any other software except IBM software i.e. OS is OS/2, Database is DB2, IDE is Eclipse etc. IBM do not use Microsoft software or any other software, all software they used are developed by them. All there Pc hardware from Pc to Server are designed and developed by them. Before Microsoft EVER thought of OS (operating System) IBM has been in the game. Remember that Bill Gates worked for IBM for three years before convincing them to try VB code on their new Altra hardware that later became IBM-Pc compatible computer we use today. IBM are not only giant hardware provider they also provide software. Most of the hardware used FTSE are not run by Microsoft but IBM, fact. kengimel: Well i have been using both netbeans and eclipse for like a year now and i finally dropped netbeans. I feel you. The most powerful IDE on earth today is the Eclipse, cost IBM $6.4 billion dollars and later submitted to open source community to use. The main power of eclipse is it Plug-in feature and crossplatform independence. The way you can plug-in UML and other model-driven application to work seamlessly as one integrated application is the power of eclipse. Although, I don't use eclipse, it makes my argument flawed, I use netbean and like the infrastructure and it Java base components. But if you argue academically or technically in relation to productivity using Eclipse is more powerful to netbeans. |
hmmm!!! You are the only one that know the answer to this. Why do you allow someone you just meet to "deflower" you whilst you have a boyfriend you love? I cannot understand your logic in this. If you ask me, you have already made your choice of the person that you want to sleep or not and that was excluding your boyfriend you love. You can NEVER say you love two people. People that say they love two people are confused. When it comes to choice they know who to choose between the two. I can see you are young and naive and lack experience, don't worry you have not done anything bad yet. All you have to do is come out with the truth to your boyfriend. If you claim you really love him you got to tell him the truth, how you have told us. Let him make up his mind whether to stay with you and forgive you or move on with his life. When you would be committing crime and evil is when you do not let him know and he goes and marry you after a longtime relationship and finds out that this is what you did to him. You are still young and be careful baby girl use condoms and make sure you get some education first ok, good luck. |
Look at this database code try{ con.setAutoCommit(false); con.prepareStatement("Select id, balance, from account where id='?); con.setInt(1, variable); con.executeQuery(); }catch(SQLException e){ con.rollback(); e.printStackTrace(); } con.commit(); con.close(); }//End Look at what you are doing managing the transaction, you have not even put it in a thread safe state and make it synchronized. Every time someone calls this business method it creates a new connection and close it, not every efficient. What about scalability how about ACID, database manager. Remember that mysql is not good for transaction management that is why it is free. They make money by consultation to write this TM (Transaction Managers) for you. A full fledge TM is Oracle that is why it is very expensive and very good DB. Haha!!! you think this is hard you have not even start to thinking about securities. You would start to play with Cryptographic API and keys and private key and tokens etc. You would will start to think about the partition of your POJO's i.e interfaces, inheritance how everything connects to each other in relation to its maintenance. But EJB have solved all these problems for you all you need is to concentrate on you business logic. Hence in EJB 3.x it only has two files compare to three files in 2.x 1. Remote class 2. Bean class 3. and a descriptor xml file that is it. You don't write any silly SQL anymore you use the JNDI and injections and etc. It manages your tread, EJB guaranteed at anytime it is only one process accessing a share resource or data item to avoid update anomalies. I will accept this where Java has failed or is till working hard to come up with a standard is the web tier framework. I like JSTF and JSF because I know how to used then very well but lots of people have complained that it is hard to learn. |
biyoe: On the business logic side, I studied EJB for a short spell intending to use it wholeheartedly until I kept noticing serious criticisms of its design especially on theserverside.com. I subconsciously believed that EJB was over engineered. Yes it is. First, remember the issues EJB tried to solve. EJB is a container that was designed to manage and synchronize these tasks? 1. Security 2. Thread issues (Hence processes synchronization) 3. Transaction Management (ACID) 4. Database pooling (Less connection to DB for every request, very helpful) 5. Object messages (hence JMS and the issues of design patterns i.e inheritance and all that) 6. A simple framework, hence EJB Yes, even Sun accepted that EJB was over engineered. The 2.x version of EJB has some problems relating to cross platforms and so many codes involves in writing a simple beans. Sun introduced EJB 3.x with annotation and injection of class relative to their JNDI directory. The EJB 3.x are now very easy to learn. They are like POJO (Plain Old Java Object) with just annotations. You can run and test them outside EJB container. Imagine you were writing a bank application or say an ebay application without EJB or .NET, you would have to worry about the securities, database connection and pool manager, threads, transaction manager, if you were using like say three or four different database connected remotely. Unless you work for oracle database Engineer I wonder how you would manage to code you application to take account of 3PC (Three Phase Commit). You have not even started writing you application logic yet, you are already coding all the necessary container features and security. Incase you do not know 3PC is a mechanism used by database to manage a distributed database or processes where it has a global manager that manages a local managers. Each manager takes care of it database transaction and return abort ot commit status to the global manager if all return commit the database is committed if one return abort the global manager must decide if to abort or resend a commit signal to the manager that returned abort. Sometime it is necessary for a global manager to wait for a while it might be network issues, traffic issue or the remote database is rebooted as an engineer you have to make that decision and and hope that your buyers are happy with your decisions Now, Is EJB good for all project? The answer will determine if you choose EJB, spring, Tapestry Struct or other framework. If you are designing a simple login database why on earth do you need EJB? If you are designing a shoppingcart why do you need EJB. EJB is a powerful technology and it is resource intensive. You have to consider your project carefully before choosing EJB. Beside a project manager should have produced a project plan including technical and none technical requirements and the scope and mitigating issue in relation to the project success or failure. You can NEVER compare EJB to all these light framework. People often make this mistake to think that EJB is suited for all projects, well the answer is no it is not. EJB addresses serious issues that you can never begin to imagine. What I have say here is just a fraction of what EJB addresses. If you want to know more go to sun website and read EJB Roadmap EJB is father of all enterprise computing application, even if you look at the job market you will see how much they pay EJB/J2EE guys. Remember that all these other frameworks i.e spring, Tapestry Hibernate etc was designed and developed by J2EE consultant that knew the power of EJB and that many people did not fully understand the purpose of EJB, hence introduced light framework for their simple login application. |
If you have money to build a tall building, it would have been easier if the architect on his right mind would have taken video, data, voice, electric etc networking on board. If the sky scrapper you are trying to network do not already have these default outlet already install. First get the architect and make him commit suicide. Second, hire a cable engineer to network the building for you with the choice of your cable. Becareful here, consider the speed of the cables and future migration. Each floor must have a comm station. All the comm routing to a central data room. Like Ynot said it is a very complex deployment, you can hire me. Each floor will cost 1 million naira excluding the equipments. If you are interested contact me [email=valentine.obih@gmail.com?subject=Networking a sky scrapper]on[/email] |
1 2 3 4 5 6 7 8 ... 10 11 12 13 14 15 16 17 18 (of 38 pages)