Jump to content
xisto Community

java-area

Members
  • Content Count

    45
  • Joined

  • Last visited

About java-area

  • Rank
    Newbie [Level 3]
  1. I do not think it is a good idea to adopt both spellings (american and british) for so-named key words, reserved in programming languages and used by compilers -it will take additional time and resources for compilation as well as to create an additional headache for compiler producers! (I do not see such key words in C++ and Java, but I belive they can be found in other languages) However this improving can be done easy for names of constants and methods. If you want to prevent any spelling mistakes for developers (who will work with your application or package), you can create such doubled constants and methods in you source code. Really good practise! May be, it will be a starting point for improving all well-known application like IE browser etc.
  2. Are you trying to load the image with an applet from the host using a socket connection or to load the image from client's local machine?In both situations the applet must be granted to get an access to this resource! Here is a good example how to grand an access from the applet to the local system file: http://www.captain.at/programming/java//?gtnjs=1 As you can see, keytool (which is included in Sun Development Kit) is used for this.
  3. I agree with this opinion. If you want to get the first good practise of working with Html/Javascript, try to use your own stylesheets and your own script. But having some exprerience, you can start to include into your project scripts and stylesheets, created by other people. And you can start to use some additional tools, templates and automatic builders. You have to keep in mind, that every automatic builder creates a lot of additional source code. That's why you will spend a lot of additional time to understand this code. Certainly, it is much easier to modify and improve your own code or the code, that you understand well!
  4. I looked breafly and belive it is good. But I do not always have pre-installed PHP and Web servers (like Apache etc.) on my local destops/nootbook. Usually I do not use PHP (which is quite resource-consuming) in my regular work for projects, and many my frends have the same situation. So, it will be a little strange to install PHP + Apache especially for getting GUI to the small local testing database.
  5. Jackarta-Tomcat is a very good starting point for studying Web development; the distributiveis is free and quite small +there are couple of sample applications ("jsp-examples etc.), that can be simply copied, renamed and used as templates for you new Web application.On another hand,Tomcat Web Server re-starts very quickly, that's why it is a very effective for different testing purposes: I often use Tomcat for debugging and testing frontend-parts of big commercial applications:The simplient structure: HTML/Javascript on client side <- JSP/Servlets on frontend <- MySQL as datastorage.Having this structure and using Tomcat/MySQL, I can create and test any basic conception of new big application, that will be developed later for other Web servers (like WebLogic etc.)
  6. When you love your job, it always looks like an art for you. In this situation you are thinking lesser about the money and more about the quality of your job (finally it gets the money, too).On another hand, good sofrtware program has not only appropriated bussiness logic and user interface. I has also a good structure, clear specifications and descriptions, readable and effective comments in source code - it is necessary for further modifications and supporting by other people. So, good application looks really like a good book and we should make similiar efforts to build it.
  7. As a user, I do not see too big difference between menshened browsers (IE, Firefox, Opera), but I prefer to use Opera - it is better for viruses and for spy! So, I have choiced Opera in your questionnaire.But as Web programmer, I see some differences (basically, for Javascript). It creates additional headache! In my job, Opera usually is not specified to be supported from commercial application and I think, many Web application were created without testing by Opera.So, sometimes I see a message like "Your browser is not suited for viewing the current page" or a strange behavior without any messages.In such situation I am trying to Firefox for this URL address - usually, it helps.On my job in the office, I always make the version of applications for IE 6.0 and only after that I do testing with Firefox. In 90 percents of cases it works. But when it does not work, it is easy to correct with additional Javascript code.I do not remember any project on my job with requirements to support Opera.
  8. I am not scepticus and I think it is possible.Moreover, it have been already used - Sun energy is free, we can take it as much as we want! In the the time of global warning, it will great to use more energy coming from outside the Earth's sphere instead of producing additional warming on our own! The reasonable question: "Is sun energy relly free?" Certainly, there are some maintenance expenses. But I think the word "Free Enengy" means "Free source of energy". Maintenace expences will be always, I do not see any way to prevent them.
  9. local databases on PC for testing purposes.GUI should be quite simply and distributive is not too big. It should work under Windows (Linux is optional) and I am going to use it anywhere: on my home computer, on laptop, on my work machine in the office - I do not need to worry about any license limitations! Seems, I have just found an analog of SQL-Front, which is called HeidiSQL and absolutely free: http://www.heidisql.com/ Another good free database tool, which I have found: http://dbdesigner.sourceforge.net/ First of all, It is intended to creating database UML diagrams and they are amazing! (I have tested many free tools for database UML design and I am cosidering dbdesigner as the best! ) But it provides also a possibility for remote admitistaring some databases. I do not know how it works, because I am only studing this issue. Thank you very much, it sounds good! That's true. Seems, it is not great deal to create own simple GUI for database adminestering with free components (for example, in Java)And I am wondering why we are still do not have a free Eclipse perspective for this. I thought about creating such free perspective(or a small free application) on my own. But first I am going to check all existed free software in Internet to prevent creating so-named "old bicycle": in Russian it means "you are trying to invent something what have been used by people for many years!"
  10. There are a lot of different free software in Internet, but I have found only couple of free graphical tools for database adminiatration.On another hand, MySQL is free for non commercial usage. That's way it will be nice to have any good free GUI for this database.I remember the time, when one of MySQL-Front versions was for free, but now it is opened only for testing period.There is also free version of Toad, which is not full Toad, but it looks also very well -However, I am not going to use Oracle (wchich is quite expensive commercial tool) on my desktop. There will be nice to have something like MySQL-front, but for free.Are there any free Eclipse plugins, that provide a perspective for database administration?I do not know.And you?Do you know any free graphical tools for administering so-named "light" databases like Hibersonic or MySQL? How they look like on your experience?I would very appreciated for any propositions!
  11. Comment to my previous message:Div elements are used very often for creating poipup menu on the first (main) page of Web sites.But we have to keep in mind, that different browser have different Javascript systacsis for moving and hiding/showing elements on the screen.Look at documentation attentively!
  12. I think the common way to create a popup with JavaScript is using Div elements. You can simply put any Html code into the tag DIV and make this Div unvisible. For example: <body> ...... <DIV id="myTestDiv" style="left:-1000px;top:-1000px;disply:none;position:absolute;'> <table border=1> <tr> <td>Menu Item 1</td> </tr> <tr> <td>Menu Item 2</td> </tr> </table> </DIV> ..... </body> When my popup window (created as Div element) is unvisible, I do not worry about its location on the screen - it does not matter. That's way I put negative values for top and left coordinates. However, before visualing I should move it to appropriated location. It can be done by JavaScript using attribute style. For example, I can move my popup to any absolute location on current page: <script language='javascript'> function moveMyPopup() { var mypopup = document.getElementById('myTestDiv'); mypopup.style.top = '25px'; mypopup.style.left = '100px'; } </script> After moving I can do it visible: pop.style.display = ''; Or hide it again: pop.style.display = 'none';
  13. I think it is the best solution, provided by Java API - we can simply put desirable business logic of sorting into the method "Comparator::compare()". I do not any reasons to invent anything else. For example: import java.util.Comparator; public class MyItem implements Comparator { ....... public int compare(Object o1, Object o2) { // your business logic of sorting } public boolean equals(Object obj) { // see Sun comments here } } So, we can put objects of MyItem class into appropriated collections (for example, any implementation of SortedSet interface: TreeSet etc.)
  14. By the way I remember a fantastic film - it seems called "Simona", but I can be mistaken. It is a french film:One talented man, guru in programming, is invented a software application to visualize a very beautiful woman.Immediately after appearing on TV this "woman" became a superstar. Everybody believe that she is really exist!And when programmer resolved to destroy her(it), everybody thought that he killed the real woman.
  15. I think the best way to learn Javascript is to create in text editor a simpliest HTML file and save it on your local machine. For example, you can create something like: <html><script language='javascript'> function mytest() { // any javacript code for testing purpose }</script><body> <input type='button' value='Do My Test' onClick='mytest()' /></body></html> Having this you can put into the mytest() function any javascript code whatever you want -for example, you can take any part of code from the tutorials and execute immediately. For debugging purposes it is very useful to use the method Alert(). It gives a possibility to visualize any intermediate calculation results etc. I think the method Alert() can be considered like an altervative of debugging breakpoints, used in Java and C++ IDE. For example, I want to use some simple math formulas in Javascript and I found in tutorial how to do this. I am updating mytest() function: function mytest() { alert('mytest started'); var arg1 = 2; var arg1 = 3; alert('before finding result'); var res = Number(arg1) + Number(arg2); alert( res );} When I open my test page in the browser and click "Do My Test" button, I see alert message "mytest started".So, I am sure that mytest() function is correctly called by Javascript. After that I see the message "before finding result". It means, that I still di not have any errors in Javascript. But I do NOT see the message with the result of calculation. It means, I have some script errors on the line var res = Number(arg1) + Number(arg2) What is wrang??? I am looking on my code very attentiavelly and I see: variable arg2 is not declared, but used on the right side of Javascript statement because I decraled two times variable arg1!!! I correct my Javascript code: function mytest() { alert('mytest started'); var arg1 = 2; [b] var arg2 = 3;[/b] alert('before finding result'); var res = Number(arg1) + Number(arg2); alert( res );} After re-opening updated page in the browser, I see all alert messages, including the message with result "5".It means, my Javascript code is perfect and ready for using anywhere in my future job! I can add this debugged source code to any other Javascript code (with a very complicated business logic) and I can be sure it will work correctly. So, step by step (looking at tutorials and realizing immediately), I can create with Javascript any bussiness logic for my project!
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.