Jump to content

Callipygous

Senior Members
  • Posts

    1771
  • Joined

  • Last visited

Everything posted by Callipygous

  1. you can make all the assumptions you want, but that ones been tested.
  2. god thats trippy.... i never get over those things. i think i could look at that for hours on end. i was gonna say disagree and that i would say each string looks like 3 dna strands. then i thought about it, and i realised i was an idiot.
  3. basically if there were a safe, effective way to store the power of lightning, it would be being used, instead of just grounding out all those lightning rods on the tops of sky scrapers.
  4. 1. 5614 2. 3. 4. 5. azurephoenix 6. i dont pay enough attention to figure out which member i would nominate for the other positions, and im sort of confused about why the staff members arent eligible. you guys are an integral part of the community, and one of the catagories in staff is made up of people who have been specifically selected for their helpfulness and knowledge.
  5. gluing together my spud gun. inside. never mind the fumes, or the small purple stain on the lanoleum (sp?), the real danger here was when my mother came home and smelled it and wanted to know what in the holy hell we had done in her house to make it smell like nail polish remover. thats a life and death situation right there.
  6. my point was, the average person cant type 160 wpm, but some people can, which means its clearly possible to type faster on a qwerty keyboard, its just that THAT person cant go faster. most people arent being held back by their keyboard layout, but by their own limitations.
  7. learning a keyboard layout isnt the same as learning a language. learning the keyboard is largely muscle memory. you dont think about, your fingers just go where they know the keys are from practice. learning another keyboard layout would require you to think about which layout your using while you type. we certainly could change it, it might take a decade to get everyone and everything switched over though, and in the mean time it would hurt productivity. would the more efficient layout be worth all that? how much faster could it really be? i know some people who can type 160 wpm on a qwerty keyboard, how much improvement could there be from a different layout?
  8. the reason no one is switching to more efficient layouts, like dvorik, is because that would be an unbelievable hassle. anyone who was used to dvorik to the point where they could use it well would struggle on any other keyboard they tried to use. i know windows has the option to switch to a different layout, and they could just do that and not look at the keys while they type, but thats counting on being able to change that option on any computer they use. i dont know what other OSs also have this feature, but i cant imagine it would be hard to implement. note: you dont need to go get a dvorik keyboard. just look it up online, pop off your keys, and move them.
  9. couldnt those of us who are pro choice say whether rape would in anyway add to our thoughts? like "im pro choice, but if your going to ban it i think there should at least be an exception for rape victims" kind of mentality?
  10. expressed or not, part of correctly solving word problems is applying it to real life. in real life you cant have 6/7 of a hen.
  11. its one of the better ones... aside from getting more pencils out of the same block of wood its the most likely. (i know that hexagonal pencils will still roll off a desk if you face it toward the slope. but a round pencil will roll off even if you have it very close to perpendicular to the slope.)
  12. i always preferred popping off the cubes and clipping them back in
  13. put the scale under one end of a perfectly balanced seesaw and then stand on it very close to the fulcrum. measure all the distances and work out the math.
  14. good point... i never thought if it that way before.
  15. worst reason to drink EVER.
  16. are you sure? id be willing to bet that everyone gets relief from at least the masturbation and the exercise, based on biology alone. and if not the masturbation, definately the exercise, because of endorphens or however thats spelled.
  17. meditate, masturbate (sorry if that seems inapropriate... i think its a legitimate stress reliever), excercise, kill digital representations of people.
  18. im sure its not the best way to do it... for some reason thats just how ive always programmed. i figure out a way to make it happen and dont really like trying to use things like jButton. : P my old programming teacher is also telling me im stupid and should just use jButton, so i might look into it... then again i might just be my usual stubborn self : D thanks for the help.
  19. Calculator.java public class Calculator { public static void main(String[] args) { // Create application frame. CalculatorProg frame = new CalculatorProg(); // Show frame frame.setVisible(true); frame.play(); } } CalculatorProg.java import java.awt.*; import java.awt.event.*; import java.awt.Image.*; public class CalculatorProg extends Frame { button[][] nums= new button[4][3]; Image theBuffer; Graphics BGraphic; boolean newEqu=true; public CalculatorProg() { //set up the menu bar MenuBar menuBar = new MenuBar(); Menu menuFile = new Menu(); MenuItem menuFileExit = new MenuItem(); MenuItem menuFileNew= new MenuItem(); menuFile.setLabel("File"); menuFileExit.setLabel("Exit"); menuFileNew.setLabel("New"); // Add action listener.for the menu button menuFileExit.addActionListener ( new ActionListener() { public void actionPerformed(ActionEvent e) { CalculatorProg.this.windowClosed(); } } ); menuFileNew.addActionListener ( new ActionListener(){ public void actionPerformed(ActionEvent e){ newEqu=true; } } ); menuFile.add(menuFileNew); menuFile.add(menuFileExit); menuBar.add(menuFile); setTitle("Calculator"); setMenuBar(menuBar); setSize(new Dimension(500, 500)); setVisible(true); // Add window listener. this.addWindowListener ( new WindowAdapter() { public void windowClosing(WindowEvent e) { CalculatorProg.this.windowClosed(); } } ); theBuffer= createImage(getWidth(),getHeight()); BGraphic= theBuffer.getGraphics(); } public void play() { initializeButtons(); do { drawButtons(BGraphic); paint(getGraphics()); }while(true); } public void paint(Graphics g) { if(BGraphic == null) { System.out.println("BGraphic is null"); } else { try { g.drawImage(theBuffer,0,0,this); } catch(Exception e) { System.out.println("problem drawing image because" + e.toString()); } } } private void initializeButtons() { System.out.println("initializing num pad"); int num=1; for (int i=0; i<nums.length-1; i++) { for (int p=0; p<nums[0].length; p++) { nums[i][p]=new button(); nums[i][p].initialize(i,p,Integer.toString(num)); num++; } } nums[3][1]=new button(); nums[3][1].initialize(3,1,"0"); for (int i=0; i<nums.length-1; i++) { for (int p=0; p<nums[0].length; p++) { nums[i][p].addMouseListener(nums[i][p]); System.out.println("makin the buttons listen"); } } nums[3][1].addMouseListener(nums[3][1]); } private void drawButtons(Graphics BGraphic) { for (int i=0; i<nums.length-1; i++) { for (int p=0; p<nums[0].length; p++) { nums[i][p].draw(BGraphic); } } nums[3][1].draw(BGraphic); } protected void windowClosed() { // TODO: Check if it is save to close the application // Exit application. System.exit(0); } public void pause(long milliPause)// leave this alone! // continues to query the system for the time until the first time - current time // exceeds the long passed into the function { long start = System.currentTimeMillis(); while(System.currentTimeMillis()-start < milliPause) { // do nothing } } } (yes, i know initializebuttons could just as easily be one loop, it was a copy and paste thing : P) button.java import java.awt.*; import java.awt.event.*; import java.awt.Color.*; public class button extends Component implements MouseListener{ private int xCoor; private int yCoor; private int width=30; private int length=30; private String value= "1"; private Color frame1=Color.BLACK; private Color frame2Color=new Color(255,0,0); private Color middle=Color.WHITE; private int frame2=0; public button() { } public void draw(Graphics g) { Color temp= frame2Color; g.setColor(frame1); g.drawRect(xCoor,yCoor,length,width); g.setColor(middle); g.fillRect(xCoor+1,yCoor+1,length-2,width-2); for (int i=5; i>0; i--) { g.setColor(temp); temp=new Color(255,255-(51*i),255-(51*i)); g.drawRect(xCoor+1+(5-i),yCoor+1+(5-i),length-2-(2*(5-i)),width-2-(2*(5-i))); } g.setColor(Color.BLACK); g.drawString(value, xCoor+10,yCoor+width-10); } public void initialize(int a, int b, String c) { yCoor=(a*width)+100; xCoor=(b*length)+50; setBounds(xCoor,yCoor,length,width); value=c; System.out.println("bounds are set at"+xCoor+","+yCoor+","+length+","+width+ " for button " + value); } public void mouseClicked(MouseEvent e) {} public void mouseEntered(MouseEvent e) { frame1=Color.BLACK; frame2Color=Color.RED; middle=Color.WHITE; System.out.println("Mouse Entered"); } public void mouseExited(MouseEvent e) { } public void mousePressed(MouseEvent e) { System.out.println("Mouse Pressed"); } public void mouseReleased(MouseEvent e) { } }
  20. Callipygous

    Dating

    wow.... getting just a little judgemental there arent we? im not saying he should get around and go date a whole bunch of people, im not saying he should go have sex with someone, im not saying he should even have a serious relationship. im saying he shouldnt immediately dismiss the idea of going on a date with some girl who likes him enough to actually ask. what harm can come of it? im not the dating type either, but when the girl who is now my girlfriend told me she was taking me on a date tomorrow because she wanted to get me away from the flickering box i call my life i didnt shoot her down. the reason i didnt shoot her down is because the worst that can happen is i decide im not interested in her and we dont go out again. the best that can happen is i end up with a really good, healthy, lasting relationship. there are all sorts of possibilities in between those two, ranging from a few fun evenings out of the house to a solid new friendship. what do you have to lose?
  21. pretty simple really.... it should change some colors and throw out a print line. public void mouseClicked(MouseEvent e) {} public void mouseEntered(MouseEvent e) { frame1=Color.BLACK; frame2Color=Color.RED; middle=Color.WHITE; System.out.println("Mouse Entered"); } public void mouseExited(MouseEvent e) { } public void mousePressed(MouseEvent e) { System.out.println("Mouse Pressed"); } public void mouseReleased(MouseEvent e) { } it does neither.
  22. it implements mouselistener, so it should be fine.
  23. the program runs, the buttons draw themselves, all if it compiles when i hit the compile project button. i have functions for all the mouselistener methods, some of them are empty like you said, but they are there. it runs, the buttons just dont do anything when the mouse enters or clicks it (which are the two methods that arent empty right now)
×
×
  • Create New...

Important Information

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.