Jump to content


fiveworlds

Member Since 06 Dec 2012
Offline Last Active Today, 02:22 AM
***--

Topics I've Started

Database Random

19 March 2017 - 02:34 AM

Let's suppose that we have a six sided dice game and we are generating a random number. Generally random number generation is tied to the system clock. However what if we had the randomly generated number query a randomly sorted database with six values? At any point in time the state of the database will be unknown. It could just be an octal number stored in memory the user can't access all we would do is add and overflow whenever random is used.

Blog Help

18 March 2017 - 11:34 PM

I have to do a wordpress blog for college which could do with a few comments if ye could be so kind. It'll probably be deleted once it is marked. http://cit-blogs.com/R00129674/


Java.awt.robot

11 March 2017 - 02:13 PM

I am using Java.awt.robot task automation. How can I capture a global button press event in windows to cancel the click automater when the user isn't clicking on eclipse in java?

public class autoclicker extends Thread{
 public void run(){
  System.out.println("thread is running...");
   Robot bot;
  try {
   bot = new Robot();
   bot.mouseMove(1600, 600);  
   for(int i =0; i < 1200000; i ++){
       
       bot.mousePress(InputEvent.BUTTON1_MASK);
       bot.mouseRelease(InputEvent.BUTTON1_MASK);
     }
  } catch (AWTException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
   
  }
 public static final int BINSIZE = 17;
 public static void main(String[] args) throws IOException, AWTException {
  autoclicker t1=new autoclicker();
  t1.start();
}

Exercise Ball as a chair

25 February 2017 - 07:06 PM

I spend alot of my time sitting in college and the bus etc everyday since starting college and am losing my six pack. My brother recommended using an exercise ball as a chair to work my abdominal muscles at home. What are the advantages and disadvantages of using an exercise ball as a chair over say getting a standing desk??


Windows Server Cpanel

15 February 2017 - 09:00 PM

Does anybody know if CPanel (Enkompass) is still available for use with Windows Server 2012 R2 Datacentre? Also is it possible to use one machine as both the primary and secondary dns nameserver??