Mouse clicking games

Mouse clicking games Do you know games like cookie clicker where you only have to click a lot? Cookie Clicker You can do that automatically with the following Python script. Just execute xdotool getmouselocation --shell before that to find the position of your mouse. #!/usr/bin/env python """Tool to make automatic clicks VERY fast (useful for idle games).""" import os import time import random def main(clicks, twiggle, x, y, delay): for i in range(clicks): xrand = random.randint(-twiggle, twiggle) yrand...

Citizen Science Projects

Citizen Science Projects "Citizen Science Projects" are research projects that crowdsource a part of the research work. The idea behind that is quite simple: Some tasks of researchers are very simple. Everybody can do them. I think some of them are a great example of Gamification. Galaxy Zoo Galaxy Zoo is a crowdsourced astronomy project which invites people to assist in the classification of galaxies. You get some images of Galaxies and you should see some characteristics by...

GPUs - Supercomputers for your home

GPUs - Supercomputers for your home A few days ago I got some of my neural net code to work with a GPU. The GPU is called "Tesla C2075". It is able to get 515 Gflops peak performance. It has 448 CUDA cores that work with 1.15 GHz and it has 6GB GDDR5 memory. My code needed about 10 hours to run before. After that, it only needed 10 minutes. That is 60 times faster! The library that did this miracle...

MediaViewer and Superprotect

MediaViewer and Superprotect Recently, a heated discussion started on the German Wikipedia about Superprotect. This article should give a very short summary how it came to this discussion. Timeline 25. July 2014: Straw poll in the German Wiki began (link) 08. August 2014: Straw poll in the German Wiki ended. 72.5 voted for a default deactivation of the MediaViewer 09. /10. August 2014: The Admins DaB., Raymond and JEissfeldt (WMF) repeatedly change MediaWiki:Common.js to activate / deactivate the...

Start long running processes via SSH

Start long running processes via SSH Screen screen is a nice tool that can be used to detach long running processes from the current SSH session - and be able to get it again! Basic usage You start it with $ screen You detach it with Ctrl + a and then d. After you pressed this key combination, you will see [detached] You get it back again with: $ screen -r Named sessions You can start a named session with $...

William Shatner

William Shatner William Shatner is the actor that played James Tiberius Kirk in the science fiction television series Star Trek. You can imagine how famous he is from these Twitter answers: .@WilliamShatner Everything within normal parameters, Capt'n. Robotic probe @ESA_Rosetta arrives at comet #67P today! http://t.co/f7nuOjMVuh— ESA (@esa) 6. August 2014 @WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you’re having a great weekend!— NASA (@NASA) 2. August 2014...

Logging in Python

Logging in Python Python has a nice logging module. You can use it like this: Stream output #!/usr/bin/env python import logging import sys logging.basicConfig(format='(asctime)s (levelname)s (message)s', level=logging.DEBUG, stream=sys.stdout) logging.debug('This message should go to the log file') logging.info('So should this') logging.warning('And this, too') File output #!/usr/bin/env python import logging logging.basicConfig(filename='logging.log', format='(asctime)s (levelname)s (message)s', level=logging.DEBUG) logging.debug('This message should go to the log file') logging.info('So should this') logging.warning('And this, too') See also Tutorial Documentation