|
Member 14239062 wrote: the question is can any one help me on that Yes, we can. As soon as you have a specific question, post it and you shall receive an answer.
If you are looking for people on your team, then this is not the place. We do questions, not projects.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: If you are looking for people on your team
I am thinking that even members of a team would have problems figuring out what that meant.
|
|
|
|
|
jschell wrote: I am thinking If it is thinking, you have arguments. You did not present those.
jschell wrote: even members of a team would have problems figuring out what that meant. Plain English should not be that hard.
Anything else?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: Plain English should not be that hard. To be honest the phrase was open to interpretation. In theory plain English should not be too hard, but in practice it is a language that can easily confuse: Time flies like an arrow, fruit flies like a banana.
|
|
|
|
|
Richard MacCutchan wrote: To be honest the phrase was open to interpretation. Is it the "looking for" that is making it so?
Richard MacCutchan wrote: In theory plain English should not be too hard, but in practice it is a language that can easily confuse ..and no debugger.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: If you are looking for people on your team Which could be (mis)interpreted to mean, "have you come here to look for people who are (already) on your team". Whereas, what you meant (I presume) was, "If you are here looking for people to join your team". It probably sounded correct to you in, and translated from, Dutch. But English has so many different ways to express things, it can catch you out. And that applies to native English speakers as much as to anyone else.
|
|
|
|
|
Richard MacCutchan wrote: Which could be (mis)interpreted to mean, "have you come here to look for people who are (already) on your team".
Thanks, and yes, now it makes a lot more sense
Richard MacCutchan wrote: It probably sounded correct to you in, and translated from, Dutch. But English has so many different ways to express things, it can catch you out. Yes and regularly.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Since I do not speak any foreign languages (apart from American, and a few words of French, Spanish, Greek, Turkish and Hebrew) I have the greatest respect for people who can speak and write English, when it is not their native language.
|
|
|
|
|
Richard MacCutchan wrote: I have the greatest respect for people who can speak and write English, when it is not their native language. Speaking and writing was easier than learning to listen; especially if two English people with different accents begin to talk to each other.
At least English still has a recognizable alphabet. When I see Greek or Hebrew I can only guess at the complexity.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: When I see Greek or Hebrew I can only guess at the complexity. Greek is quite easy because some of the letters are similar to ones we are used to. And some are math symbols which we often recognise. Hebrew is quite alien (and the wrong way round) but can still be learned with a bit of study.
|
|
|
|
|
Eddy Vluggen wrote: If it is thinking, you have arguments. You did not present those.
Perhaps my comment was not clear...
In terms of the original post, not yours, even a team would not understand what the original post (not yours) meant.
|
|
|
|
|
jschell wrote: Perhaps my comment was not clear... I read it differently, but that's my bad. I could have asked for explanation.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
hey guys, i'm developing a grocery store java desktop app, and i don't know much about databases and which one is better : an embedded data base or MySql,Postgres...considering performance and storage.
thanks.
|
|
|
|
|
 Both databases (MySQL and PostgreSQL) are very well known and have almost the same functionality. As to performance - it's opinion based only Joking! The thruth is that the performance depends on many factors, such as:
Quote:
- You are not running with a transaction log (see "The transaction log"). A transaction log improves commit time for transactions that insert, update, or delete rows.
- You are using the 16-bit version of the Windows 3.x database engine. The 32-bit version has better performance, especially for larger databases.
- You are loading huge amounts of data into a database. See "Tuning bulk operations" for methods to improve performance.
- The database engine does not have an adequate amount of memory for caching database pages. See "The database engine" for command line options for controlling the cache size. Extra memory for your computer could improve database performance dramatically.
- Your hard disk is excessively fragmented. This becomes more important as your database increases in size. The DOS and Windows database engines cannot do direct (fast) reading and writing when the database file is very fragmented. There are several utilities available for DOS and Windows to defragment your hard disk. One of these should be run periodically. You could put the database on a DOS disk partition by itself to eliminate fragmentation problems.
- You are using a small page size for a large database. The page size is determined when the database is created by the initialization utility. You can find out the page size by using DBINFO. To change page size, you need to unload and reload your database.
- The database table design is not good. A bad database design can result in time-consuming queries to get information from the database. If indexes will not solve your performance problem, consider alternative database designs.
- Your hard disk is slow. A faster hard disk, a caching disk controller or a disk array can improve performance considerably.
- In a multiuser environment, your network performance is slow.
- You are fetching or inserting many rows of data. Consider using the multi-row operations.
See:
Comparison of relational database management systems - Wikipedia
DB-Engines Ranking - popularity ranking of database management systems
SQLite vs MySQL vs PostgreSQL: A Comparison Of Relational Database Management Systems | DigitalOcean
Factors affecting database performance
So, decision belongs to you...
Good luck!
modified 29-Apr-19 15:29pm.
|
|
|
|
|
|
You're very welcome.
Maciej Los
|
|
|
|
|
At one time, choosing a database platform required a few months of study, and a lot of meetings. Then the DBA's, etc.
Now it's like deciding what color socks to wear, and anyone can "do it".
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
And everyone laughs at your choice of colours/patterns on the socks. 
|
|
|
|
|
My wife doesn't appreciate my choice of socks color, but she doesn't care about databases, so choosing adatabase is certainly less stressful!
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Embedded database if fine if you want to add small amount of data on regular basis. If you want to store huge data, then you should go for some custom database.
|
|
|
|
|
Well, I do not now what KIND of database you need ))
In case you need a NoSQL database then google "How to choose a (NoSQL) database system"
And if you need a SQL database the answer is simple - PostgreSQL
(And avoid MySQL like a plague)
And if you do not know about "NoSQL" then just use PostgreSQL ))
|
|
|
|
|
package convexHull1;
import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.swing.JFrame;
public class ConvexHull extends Canvas implements MouseListener{
private static int countA;
private static int countB;
private static ArrayList<Point> A = new ArrayList<Point>();
private static ArrayList<Point> B = new ArrayList<Point>();
private static Graphics gDC;
public ConvexHull() {
countA = 0;
countB = 0;
addMouseListener((MouseListener) this);
}
public static void main(String[] args) {
JFrame jf = new JFrame("Convex Hull");
ConvexHull convexHull = new ConvexHull();
jf.setSize(800, 600);
jf.setVisible(true);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jf.add(convexHull);
}
public void paint(Graphics gDC)
{
PrintWriter out;
String str = new String();
try {
out = new PrintWriter(new BufferedWriter(new FileWriter("hulloutput.txt",true)));
str = "";
for(int i = 0;i < countA;i++)
{
gDC.fillOval(A.get(i).getX()-5, A.get(i).getY()-5, 10, 10);
str += A.get(i).toString() + " ";
}
out.println("All points");
out.println(str);
out.println("Points on the hull");
str = "";
for(int i = 0;i < countB;i++)
{
gDC.drawLine(B.get(i).getX(),B.get(i).getY(), B.get((i+1)%countB).getX(),B.get((i+1)%countB).getY());
System.out.println(B.get(i).getX() + " "+ B.get(i).getY());
str += B.get(i).toString() + " ";
}
out.println(str);
System.out.println();
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
@Override
public void mouseClicked(MouseEvent e) {
}
@Override
public void mouseEntered(MouseEvent e) {
}
@Override
public void mouseExited(MouseEvent e) {
}
@Override
public void mousePressed(MouseEvent e) {
int x = e.getX();
int y = e.getY();
Point point = new Point(x,y);
A.add(point);
countA++;
while(!B.isEmpty())
B.remove(B.get(0));
countB = B.size();
repaint();
}
@Override
public void mouseReleased(MouseEvent e) {
}
}
How can I add JMenu to this and handle the events
|
|
|
|
|
|
import javax.swing.*;
class MenuExample
{
JMenu menu, submenu;
JMenuItem i1, i2, i3, i4, i5;
MenuExample(){
JFrame f= new JFrame("Menu and MenuItem Example");
JMenuBar mb=new JMenuBar();
menu=new JMenu("Menu");
submenu=new JMenu("Sub Menu");
i1=new JMenuItem("Item 1");
i2=new JMenuItem("Item 2");
i3=new JMenuItem("Item 3");
i4=new JMenuItem("Item 4");
i5=new JMenuItem("Item 5");
menu.add(i1); menu.add(i2); menu.add(i3);
submenu.add(i4); submenu.add(i5);
menu.add(submenu);
mb.add(menu);
f.setJMenuBar(mb);
f.setSize(400,400);
f.setLayout(null);
f.setVisible(true);
}
public static void main(String args[])
{
new MenuExample();
}}
Are you looking for java online courses? No need to worry, at E2E Training academy we provide java full stack development courses Full Stack Java Developer & Salesforce Admin Online Courses[^]
|
|
|
|
|
please i dont know how you could help me am working on my final year project and this is the topic my supervisor choose for me pls can i get some help on this or sources that could help? am so so confused will be happy if i could get a reply soon. thank in advance
|
|
|
|